Examples
Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more.
Install / Use
/learn @serverless/ExamplesREADME
Serverless Examples
A collection of ready-to-deploy Serverless Framework services.
Table of Contents
<!-- AUTO-GENERATED-CONTENT:START (TOC:collapse=true&collapseText=Click to expand) generated w/ `npm run docs` --> <details> <summary>Click to expand</summary> </details> <!-- AUTO-GENERATED-CONTENT:END -->Getting Started
If you are new to serverless, we recommend getting started with by creating an HTTP API Endpoint in NodeJS, Python, Java, or Golang.
Examples
Each example contains a README.md with an explanation about the service and it's use cases.
Have an example? Submit a PR or open an issue. ⚡️
To install any of these you can run:
serverless install -u https://github.com/serverless/examples/tree/master/folder-name -n my-project
<!-- AUTO-GENERATED-CONTENT:START (SERVERLESS_EXAMPLE_TABLE) t generated w/ `npm run docs` -->
| Example | Runtime | | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------ | | Dot Net REST API with DynamoDB <br/> Setup a REST API w/ DynamoDB using Dot Net Core 2.1 | unknown | | AWS FFmepg Layer <br/> AWS FFmepg Layer & a service using it to create GIFs | unknown | | AWS Golang Auth <br/> This example shows you how to setup auth in front of a AWS Lambda function | unknown | | DynamoDB Stream To Elasticsearch <br/> Stream data from DynamoDB to Elasticsearch | unknown | | Google map api <br/> Serverless example using golang to hit google map api | unknown | | HTTP GET and POST <br/> Boilerplate code for Golang with GET and POST example | unknown | | Aws golang rest api with dynamodb <br/> Boilerplate code for Golang CRUD Operations | unknown | | AWS S3 Bucket Replicator in Golang <br/> Boilerplate code for Golang with S3 object create event and replicator example | unknown | | TODO <br/> This example demonstrates how to setup a simple HTTP endpoint in Go. | unknown | | TODO <br/> This example demonstrates how to stream kinesis information into elasticsearch in a golang runtime | unknown | | AWS Simple HTTP Endpoint example in Java <br/> This example demonstrates how to setup a simple HTTP GET endpoint using Java. Once you ping it, it will reply with the current time. | unknown | | TODO <br/> This example demonstrates how you can run multiple runtimes in AWS Lambda. | unknown | | AWS Serverless Alexa Skill example in NodeJS <br/> This example demonstrates how to setup your own Alexa skill using AWS Lambdas. | unknown | | API Gateway Authorizer Function for Auth0 or AWS Cognito using RS256 JSON Web Key Sets tokens. <br/> Authorize your API Gateway with either Auth0 or Cognito JWKS RS256 tokens. | unknown | | AWS API Gateway Custom Authorizer Function with Auth0 example in NodeJS <br/> This is an example of how to protect API endpoints with Auth0, JSON Web Tokens (jwt) and a custom authorizer lambda function. | unknown | | Dynamic Image Resizing API <br/> This example shows you how to setup a dynamic image resizer API
