documentation
quick starts
examples & guides
examples-and-guides

Examples

Search our full examples repository for project examples using all languages and FaaS providers.

All the examples

platform
language
framework

Java

AWS | Simple HTTP Endpoint

This example demonstrates how to setup a simple HTTP GET endpoint using Java. Once you ping it, it will reply with the current time.

nodeJS

AWS | Alexa Skill Example

This example demonstrates how to setup your own Alexa skill using AWS Lambdas.

nodeJS

AWS | Auth0 Cognito Custom Authorizers API

Authorize your API Gateway with either Auth0 or Cognito JWKS RS256 tokens.

nodeJS

AWS | Auth0 Custom Authorizers API

This is an example of how to protect API endpoints with Auth0, JSON Web Tokens (jwt) and a custom authorizer lambda function.

nodeJS

AWS | DynamoDB Backup Example

This examples shows your how to create a backup of your DynamoDB table to S3.

nodeJS

AWS | Env Variables Encrypted In A File

This example demonstrates how to store secrets like API keys encrypted in your repository while providing them as environment variables to your AWS Lambda functions.

nodeJS

AWS | Env Variables Example

This example demonstrates how to use environment variables for AWS Lambdas.

nodeJS

AWS | Fetch File And Store In S3

This example display how to fetch an image from remote source (URL) and then upload this image to a S3 bucket.

nodeJS

AWS | Function Compiled With Babel

This example demonstrates how to compile your JavaScript code with Babel. In order to do so the 'serverless-babel-plugin' is leveraged.

nodeJS

AWS | Github Webhook Listener

This service will listen to github webhooks fired by a given repository.

nodeJS

AWS | GraphQL API With DynamoDB

A single-module GraphQL endpoint with query and mutation functionality.

nodeJS

AWS | IOT Event Example

This example demonstrates how to setup a AWS IoT Rule to send events to a Lambda function.

nodeJS

AWS | OAuth Dropbox API

Connect to Dropbox's API using AWS Lambda.

nodeJS

AWS | Recursive Function Example

This is an example of a function that will recursively call itself.

nodeJS

AWS | Rekognition Analysis S3 Image

This example shows how to analys an image in an S3 bucket with Amazon Rekognition and return a list of labels.

New to serverless?

To get started, pop open your terminal & run:

npm install serverless -g

Made with love in San Francisco + Atlanta, Austria, Germany, Pakistan, Poland, Nebraska & Thailand

Serverless, Inc. © 2018

Join our newsletter and get the latest news about Serverless products and happenings. #noSpamWePromise