Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework and AWS Lambda
JavaScript Python HTML Java CSS Makefile Other
Switch branches/tags
Nothing to show
Clone or download
Latest commit cf36e0e Jul 12, 2018
Permalink
Failed to load latest commit information.
.github add PR template Dec 8, 2016
aws-java-simple-http-endpoint update java example docs Oct 17, 2017
aws-multiple-runtime aws-multiple-runtime: fix linting issues Sep 15, 2017
aws-node-alexa-skill Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-node-auth0-cognito-custom-authorizers-api Follows the JWKS spec better Sep 24, 2017
aws-node-auth0-custom-authorizers-api updated auth0 lock version and fixed auth function Mar 17, 2018
aws-node-dynamodb-backup Better README Jun 22, 2017
aws-node-env-variables-encrypted-in-a-file Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-node-env-variables Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-node-fetch-file-and-store-in-s3 Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-node-function-compiled-with-babel Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-node-github-webhook-listener Fix githib-webhook-listener Aug 20, 2017
aws-node-graphql-api-with-dynamodb em... May 31, 2018
aws-node-iot-event Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-node-oauth-dropbox-api minor fix Jun 30, 2018
aws-node-recursive-function Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-node-rekognition-analysis-s3-image Fix rekognition-analysis-s3-image Aug 22, 2017
aws-node-rest-api-mongodb create a connection wrapper, enhance the code and fix to a current wo… May 29, 2018
aws-node-rest-api-with-dynamodb-and-offline Fix rest-api-with-dynamodb-and-offline Aug 22, 2017
aws-node-rest-api-with-dynamodb bugfix - Internal server error Oct 11, 2017
aws-node-scheduled-cron Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-node-scheduled-weather Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-node-serve-dynamic-html-via-http-endpoint Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-node-simple-http-endpoint Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-node-single-page-app-via-cloudfront Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-node-stripe-integration Fix stripe-integration Aug 22, 2017
aws-node-text-analysis-via-sns-post-processing Fix text-analysis-via-sns-post-processing Aug 22, 2017
aws-node-twilio-send-text-message Exclude front end directory May 31, 2017
aws-node-typescript-rest-api-with-dynamodb make name more unique Aug 1, 2017
aws-node-upload-to-s3-and-postprocess Update README.md Dec 22, 2017
aws-python-alexa-skill Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-python-auth0-custom-authorizers-api Added Python AWS Lambda Authorizer Jul 12, 2018
aws-python-pynamodb-s3-sigurl Fix issues from reviewer suggestions. Nov 27, 2017
aws-python-rest-api-with-dynamodb Fixing SETUP typo in README.md Jan 5, 2018
aws-python-rest-api-with-faunadb Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-python-rest-api-with-pynamodb Update to docs Jul 29, 2017
aws-python-scheduled-cron Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-python-simple-http-endpoint Add front matter to the examples readme for pusblishing to site. May 18, 2017
aws-python-telegram-bot Add aws-python-telegram-bot Nov 6, 2017
azure-node-simple-http-endpoint Update the Azure example to match recent updates. Jun 1, 2017
google-node-simple-http-endpoint Merge pull request #159 from serverless/update-gcf-npm-package-version May 24, 2017
kubeless-python-schedule Adapt examples to kubeless 0.5 Mar 28, 2018
kubeless-python-simple Adapt examples to kubeless 0.5 Mar 28, 2018
openwhisk-go-simple Updating OpenWhisk provider plugin instructions Jun 1, 2018
openwhisk-node-and-docker-chaining-functions Updating OpenWhisk provider plugin instructions Jun 1, 2018
openwhisk-node-chaining-functions Updating OpenWhisk provider plugin instructions Jun 1, 2018
openwhisk-node-scheduled-cron Updating OpenWhisk provider plugin instructions Jun 1, 2018
openwhisk-node-simple-http-endpoint Updating OpenWhisk provider plugin instructions Jun 1, 2018
openwhisk-node-simple Updating OpenWhisk provider plugin instructions Jun 1, 2018
openwhisk-php-simple Updating OpenWhisk provider plugin instructions Jun 1, 2018
openwhisk-python-scheduled-cron Updating OpenWhisk provider plugin instructions Jun 1, 2018
openwhisk-python-simple-http-endpoint Updating OpenWhisk provider plugin instructions Jun 1, 2018
openwhisk-python-simple Updating OpenWhisk provider plugin instructions Jun 1, 2018
openwhisk-swift-precompiled-binaries Updating OpenWhisk provider plugin instructions Jun 1, 2018
openwhisk-swift-scheduled-cron Updating OpenWhisk provider plugin instructions Jun 1, 2018
openwhisk-swift-simple-http-endpoint Updating OpenWhisk provider plugin instructions Jun 1, 2018
openwhisk-swift-simple Updating OpenWhisk provider plugin instructions Jun 1, 2018
.editorconfig 👕 Linting for typescript Jul 28, 2017
.eslintignore ignore node_modules Nov 14, 2016
.eslintrc.json eslint: disable no-console Feb 6, 2017
.gitignore cleanup gitignore definitions Feb 10, 2017
.travis.yml update build Nov 15, 2017
LICENSE.txt add license Jun 7, 2017
README.md Added Python AWS Lambda Authorizer Jul 12, 2018
check-if-readme-is-up-to-date.sh fix readme check Mar 20, 2017
community-examples.json Added community project Java Spring Function. Also generated README D… Jun 30, 2018
generate-readme.js Adding PHP example for OpenWhisk. Aug 25, 2017
package-lock.json docs updated Jun 30, 2018
package.json update readme Jan 13, 2018
yarn.lock updated auth0 lock version and fixed auth function Mar 17, 2018

README.md

WebsiteEmail UpdatesGitterForumMeetupsTwitterFacebookContact Us

Serverless Examples

A collection of ready-to-deploy Serverless Framework services.

Table of Contents

Click to expand

Getting Started

If you are new to serverless, we recommend getting started with by creating an HTTP API Endpoint in NodeJS, Python, or Java

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
Example Runtime
Aws Alexa Skill
This example demonstrates how to use an AWS Lambdas for your custom Alexa skill.
nodeJS
Aws Node Auth0 Cognito Custom Authorizers Api
Authorize your API Gateway with either Auth0 or Cognito RS256 tokens.
nodeJS
Aws Auth0 Api Gateway
Demonstration of protecting API gateway endpoints with auth0
nodeJS
Aws Node Dynamodb Backup
Serverless DynamoDB changes backed up to S3
nodeJS
Aws Env Variables Encrypted In A File
Serverless example managing secrets in an encrypted file
nodeJS
Aws Env Variables
This example demonstrates how to use environment variables for AWS Lambdas.
nodeJS
Aws Fetch File And Store In S3
Fetch an image from remote source (URL) and then upload the image to a S3 bucket.
nodeJS
Aws Function Compiled With Babel
Demonstrating how to compile all your code with Babel
nodeJS
Aws Github Webhook Listener
Extend your github repositories with this github webhook listener
nodeJS
Aws Node Graphql Api With Dynamodb
A single-module GraphQL endpoint with query and mutation functionality.
nodeJS
Aws Iot Event
Example on how to setup a AWS IoT Rule to send events to a Lambda function
nodeJS
Dropbox
dropbox integration
nodeJS
Aws Node Rekognition Analysis S3 Image
Analyse an Image from an S3 Bucket with Amazon Rekognition
nodeJS
Aws Node Restapi Mongodb
Serverless REST API with MongoDB using Mongoose and Bluebird
nodeJS
Aws Rest Api Offline
Serverless REST API with DynamoDB and offline support
nodeJS
Aws Rest With Dynamodb
Serverless CRUD service exposing a REST HTTP interface
nodeJS
Aws Scheduled Cron
Example of creating a function that runs as a cron job using the serverless schedule event
nodeJS
Aws Scheduled Weather
Example of creating a function that runs as a cron job using the serverless schedule event through pulling weather and sending an email daily.
nodeJS
Aws Serve Dynamic Html Via Http Endpoint
Hookup an AWS API Gateway endpoint to a Lambda function to render HTML on a GET request
nodeJS
Aws Serve Simple Http Endpoint
Example demonstrates how to setup a simple HTTP GET endpoint
nodeJS
Aws Single Page App Via Cloudfront
Demonstrating how to deploy a Single Page Application with Serverless
nodeJS
Serverless Single Page App Plugin
A plugin to simplify deploying Single Page Application using S3 and CloudFront
nodeJS
Aws Node Stripe Integration
This example for Stripe integration using AWS Lambda and API Gateway.
nodeJS
Aws Text Analysis Via Sns Post Processing
Example demonstrates how to setup a simple data processing pipeline
nodeJS
Aws Node Twilio Send Text Message
Send a text message via twilio from aws lambda. See live demo
nodeJS
Typescript Example nodeJS
Upload To S3 And Postprocess
Upload a files to S3 to trigger a lambda function.
nodeJS
Aws Alexa Skill
This example demonstrates how to use an AWS Lambdas for your custom Alexa skill.
python
Aws Auth0 Api Gateway
Demonstration of protecting API gateway endpoints with auth0
python
Aws Python Pynamodb S3 Sigurl
Serverless signed uploader REST API using pynamodb, s3 generated events, custom log format, and DRY serverless.yml with custom section
python
Aws Rest With Dynamodb
Serverless CRUD service exposing a REST HTTP interface
python
Aws Rest With Faunadb
Serverless CRUD service exposing a REST HTTP interface
python
Aws Rest With Pynamodb
Serverless CRUD service exposing a REST HTTP interface
python
Aws Scheduled Cron
Example of creating a function that runs as a cron job using the serverless schedule event
python
Aws Simple Http Endpoint
Example demonstrates how to setup a simple HTTP GET endpoint with python
python
Serverless Telegram Bot
This example demonstrates how to setup an echo Telegram Bot using the Serverless Framework ⚡🤖
python
Azure Node Simple Http Endpoint
An example of making http endpoints with the Azure Functions Serverless Framework plugin
nodeJS
Google Node Simple Http Endpoint
An example of making http endpoints with the Google Cloud Functions Serverless Framework plugin.
nodeJS
Kubeless Python Simple
This example demonstrates how to setup a simple Python function with Kubeless
python
Kubeless Python Simple
This example demonstrates how to setup a simple Python function with Kubeless
python
Openwhisk Go Simple
Example demonstrates how to setup a simple Go function with OpenWhisk.
nodeJS
Openwhisk Node And Docker Chaining Functions
Example of chaining function calls using sequences and docker images.
nodeJS
Openwhisk Node Chaining Functions
Example of chaining function calls using sequences and the sdk.
nodeJS
Openwhisk Node Scheduled Cron
Example of creating a function that runs as a cron job using the serverless schedule event.
nodeJS
Openwhisk Node Simple Http
Example demonstrates how to setup a simple HTTP GET endpoint with OpenWhisk.
nodeJS
Openwhisk Node Simple
Simple example demonstrating OpenWhisk provider support.
nodeJS
Openwhisk Php Simple
Example demonstrates how to setup a simple PHP function with OpenWhisk.
php
Openwhisk Python Scheduled Cron
Example of creating a Python function that runs as a cron job using the serverless schedule event.
python
Openwhisk Python Simple Http Endpoint
Example demonstrates how to setup a simple HTTP GET endpoint with OpenWhisk.
python
Openwhisk Python Simple
Example demonstrates how to setup a simple Python function with OpenWhisk.
python
Openwhisk Swift Package With Precompiled Binaries
Swift packages and pre-compiled binaries on OpenWhisk.
swift
Openwhisk Swift Scheduled Cron
Example of creating a Swift function that runs as a cron job using the serverless schedule event.
swift
Openwhisk Swift Simple Http Endpoint
Example demonstrates how to setup a simple HTTP endpoint using Swift function with OpenWhisk.
swift
Openwhisk Swift Simple
Example demonstrates how to setup a simple Swift function with OpenWhisk.
swift

Community Examples

Add an example

To install any of these you can run:

serverless install -u https://github.com/author/project -n my-project
Example Author
Aws Api Gateway Serverless Project Written In Go
A serverless project that contains an API Gateway endpoint powered by a Lambda function written in golang and built using eawsy/aws-lambda-go-shim.
yunspace
Aws Cognito Custom User Pool Example
Example CloudFormation custom resource backed by a lambda using Cognito User Pools
bsdkurt
Aws Lambda Power Tuning (Powered By Step Functions)
Build a Step Functions state machine to optimize your AWS Lambda Function memory/power configuration.
alexcasalboni
Aws Demo Java Spring Cloud Function Serverless
If Java is your choice of programming language-Spring Cloud Function,Serverless Framework makes a great technology stack. It boosts developer productivity by decoupling from Vendor specific FaaS API, and deployment activities.
mbsambangi
Amazon Kinesis Streams Fan Out Via Kinesis Analytics
Use Amazon Kinesis Analytics to fan-out your Kinesis Streams and avoid read throttling.
alexcasalboni
Daily Instance Backups With Ami Rotation
A simple Python application which scans through your entire AWS account for tagged instances, makes daily AMIs of them, and rotates their backups automatically
AndrewFarley
Open Bot
An unoptionated Github bot driven by a configuration file in the repository
open-bot
Personal Access Tokens Cron Check
Audit for leaked PAT in your Contentful organization. How to use serverless as cronjobs to keep your Personal Access Tokens secure
madtrick
React & Stripe Serverless Ecommerce
Serverless E-Commerce App with AWS Lambda, Stripe and React
patrick-michelberger
Realtime Ww2 Alexa Skill
An alexa skill project that's using Alexa SDK. Can also be used for a working example of serverless-webpack (with use of async/await via babel).
ceilfors
Sqs Worker With Aws Lambda And Cloudwatch Alarms
Process messages stored in SQS with an auto-scaled AWS Lambda worker function.
sbstjn
Serverless + Lambda + Vpc + Nat + Redis
Demo using API Gateway and Lambda with VPC and NAT to access Internet and AWS Resource
ittus
Serverless Analytics
Write your own Google Analytics clone and track website visitors serverless with API Gateway, Kinesis, Lambda, and DynamoDB.
sbstjn
Serverless Architecture Boilerplate
Boilerplate to organize and deploy big projects using Serverless and CloudFormation on AWS
msfidelis
Serverless Dashboard For Atom Editor
Atom editor package which allows you to deploy and visualize your serverless services with Serverless Framework on your editor.
horike37
Serverless Es6/7 Crud Api
Serverless Stack examples of backend CRUD APIs (DynamoDB + Lambda + API Gateway + Cognito User Pool authorizer) for React.js single-page app
AnomalyInnovations
Serverless Gitlab Ci
Simple Gitlab CI template for automatic testing and deployments
bvincent1
Serverless Instagram Crawler
Instagram hashtag Crawler with Lambda & DynamoDB.
kimcoder
Serverless Kakao Bot
Easy development for Kakaotalk Bot with Serverless
JisuPark
Serverless Q&a Example
Inspired by the AWS example forum. A multitenancy Q&A template for surveys, forums and more
jacksoncharles
Serverless Reactjs Universal Rendering Boilerplate
ReactJS web app Starter kit does universal (isomorphic) rendering with Serverless
TylorShin
Serverless Ssh Command
Example of executing ssh command with OpenWhisk
upgle
Serverless Telegram Bot
This example demonstrates how to setup an echo Telegram Bot using the Serverless Framework ⚡🤖
jonatasbaldin
Serverless Ffmpeg
Bucket event driven FFMPEG using serverless. Input bucket => Serverless ffmpeg => Output bucket.
kvaggelakos
Serverless Sns Api
Build a SNS service on AWS, support backend API for SNS by device, by group and by user
eddielisc
Serving Binary Files
Small example showing how to serve binary files using Serverless on AWS with the serverless-apigw-binary plugin, using generated Excel files as an example
thomastoye
Stack Overflow Monitor
Monitor Stack Overflow questions and post them in a Slack channel
picsoung
Adoptable Pet Bot
Tweets adoptable pets using Serverless (Node.js) and AWS Lambda
lynnaloo
Aws Ses Serverless Example
AWS SES example in NodeJS using lambda
lakshmantgld
Bablebot
Lambda + API Gateway: Zero-to-chatbot in <10 lines of JS. Built-in integrations for Messenger, Telegram, Kik, Line, Twilio, Skype, and Wechat. Or roll your own!
abiglobalhealth
Bittman
A serverless project that follows a stock trading algorithm and uses scheduled functions to save data to DynamoDB and send emails through Mailgun.
rhlsthrm
Cordis Serverless
A serverless API for EU Cordis data
marzeelabs
Faultline
Error tracking tool on AWS managed services.
faultline
Giphy Bot
giphy-bot for Facebook chat
tywong
Grants Api Serverless
ES6 API to consume data from an external API, ingest into Elasticsearch and return a queryable endpoint on top of Elasticsearch
comicrelief
Honeylambda
a simple, serverless application designed to create and monitor URL {honey}tokens, on top of AWS Lambda and Amazon API Gateway
0x4D31
Jrestless Examples
JRestless (Java / JAX-RS) examples for API Gateway Functions (plain JAX-RS, Spring, binary data requests/responses, custom authorizers and Cognito User Pool authorizers), SNS Functions (asynchronous communication between functions) and Service Functions (synchronous HTTP-like communication between functions - transparent through Feign)
bbilger
Jwt Lambda Python
Minimal proof-of-concept implementation of JWT with Serverless / AWS Lambda
mikaelmork
Jwtauthorizr
Custom JWT Authorizer Lambda function for Amazon API Gateway with Bearer JWT
serverlessbuch
Keboola Developer Portal
Keboola developer portal built with Serverless
keboola
Offset Trump
Single page app using Serverless (C# runtime) and S3 site hosting. Pledge to do a good thing for the next four years to offset the potential negative effects of the US Presidency
FLGMwt
Owntracks Serverless
A serverless implementation of the OwnTracks HTTP backend
dschep
Pfs Email Serverless
This is a lambda function created by the serverless framework. It searches through members in our mongodb who have not been sent emails and sends them an email with their custom token to unlock the pledge free stream. It then marks those members off as already receiving the email.
SCPR
Plaid Cashburndown Service
Service for calculating cash burndown with plaid. Frontend code can be found here: https://github.com/cplee/cashburndown-site
cplee
Sc5 Serverless Boilerplate
A boilerplate that contains setup for test-driven development
SC5
Serverless + Java Dynamodb Imlementation Example
example for java programmers that want to work with AWS-Lambda and DynamoDB
igorbakman
Serverless + Lambda Protobuf Responses
Demo using API Gateway and Lambda with Protocol Buffer
theburningmonk
Serverless + Medium Text To Speech
Serverless-based, text-to-speech service for Medium articles
RafalWilinski
Serverless Aws Rekognition Finpics
Use AWS Rekognition to provide a faces search of finpics.com
rgfindl
Serverless Blog To Podcast
Service that reads RSS feed and converts the entries to a podcast feed and audio files using Amazon Polly
SC5
Serverless Cloudwatch Rds Custom Metrics
A NodeJS-based MySQL RDS Data Collection script to push Custom Metrics to Cloudwatch with Serverless
AndrewFarley
Serverless Delivery Framework
This is a boilerplate for version release pipeline with serverless framework
99xt
Serverless Examples Cached Rds Ws
A serverless framework example project that uses API Gateway, ElastiCache, and RDS PostgreSQL.
mugglmenzel
Serverless Facebook Quotebot
100% Serverless Facebook messenger chatbot which will respond with inspiring quotes
pmuens
Serverless Garden Aid
IoT Garden Aid Backend
garden-aid
Serverless Graphql Api
Serverless GraphQL API using Lambda and DynamoDB
boazdejong
Serverless Html Pdf
Service that convert HTML to PDF using PhantomJS's rasterize example.
calvintychan
Serverless Image Manager
image upload / download with resizing. Used API gateway's binary support & serverless
TylorShin
Serverless Mailgun Slack
A Serverless function for posting to a Slack Webhook in response to a Mailgun route
Marcus-L
Serverless Messenger Boilerplate
Serverless messenger bot boilerplate
SC5
Serverless Modern Koa
Serverless modern koa starter kit
barczaG
Serverless Msg Gateway
A messaging aggregator for kik, skype, twilio, telegram, & messenger. Send and receive messages in a standard format.
yonahforst
Serverless Newsletter Signup
Saves user details into DynamoDB table. Required values are email, first_name and last_name.
ivanderbu2
Serverless Npm Registry
Serverless private npm registry, proxy and cache.
craftship
Serverless Pokego
Serverless-powered API to fetch nearby Pokemon Go data
jch254
Serverless Postgraphql
GraphQL endpoint for PostgreSQL using postgraphql
rentrop
Serverless Python Sample
A simple serverless python sample with REST API endpoints and dependencies
bennybauer
Serverless React Boilerplate
A serverless react boilerplate for offline development
99xt
Serverless Screenshot
Serverless Screenshot Service using PhantomJS
svdgraaf
Serverless Slack Cron
Lambda function which sends messages to Slack channel in regular intervals via cron trigger.
ivanderbu2
Serverless Slack Emojibot
Serverless slack bot for emoji
markhobson
Serverless Slack Trevorbot
Slack bot for info on where in the world is Trevor Gerhardt?
conveyal
Serverless Url Shortener
A simple url-shortener, using Serverless framework
aletheia
Serverless Weekly2pocket App
Serverless-powered API for sending posts to pocket app
s0enke
Slack Signup Serverless
Serverless signup to Slack and more. Lambda with Python, StepFunctions, and Web front end. Python boilerplate included.
dzimine
Sls Access Counter
Site visitor counter
takahashim
Sls Form Mail
Send SNS email from form data
takahashim
Video Preview And Analysis Service
An event-driven service that generates labels using Amazon Rekognition and creates preview GIF animation from a video file.
laardee

Contributing

We are happy to accept more examples from the community. 🎉

Adding example code

  1. Make sure your contribution matches the linting setup for this repo:

Run the linting via

npm run lint
  1. Add a package.json file in your example with the name of the example and a description and any dependencies used.

  2. Regenerate the README.md with the following command

npm run docs
  1. Open a new pull request with your example. ⚡️

Adding a community example

We love hearing about projects happening in the community. Feel free to add your serverless project to our growing list.

  1. Add link, title, and description to the community-examples.json file.

  2. Open a new pull request with your example. ⚡️