Skip to content

serverless/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,488 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Website  •  Documentation  •  X / Twitter  •  Community Slack  •  Forum


examples-hero

Serverless Examples

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

Table of Contents

Click to expand

Getting Started

The fastest way to get started is installing the Serverless Framework CLI (npm install -g serverless) and deploying one of the examples below. If you are new to serverless, we recommend getting started 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 use one of these examples, run the serverless command and pick a starter from the interactive template menu, or grab any example directly:

git clone https://github.com/serverless/examples
cd examples/folder-name
serverless deploy
Example Runtime
Dot Net REST API with DynamoDB
Setup a REST API w/ DynamoDB using .NET 10
dotnet
AWS FFmepg Layer
AWS FFmepg Layer & a service using it to create GIFs
nodeJS
AWS Golang Auth
This example shows you how to setup auth in front of a AWS Lambda function
golang
Google map api
Serverless example using golang to hit google map api
golang
HTTP GET and POST
Boilerplate code for Golang with GET and POST example
golang
Aws golang rest api with dynamodb
Boilerplate code for Golang CRUD Operations
golang
AWS S3 Bucket Replicator in Golang
Boilerplate code for Golang with S3 object create event and replicator example
golang
Golang Simple HTTP Endpoint
This example demonstrates how to setup a simple HTTP endpoint in Go.
golang
AWS Simple HTTP Endpoint example in Java
This example demonstrates how to setup a simple HTTP GET endpoint using Java. Once you ping it, it will reply with the current time.
java
Multiple Runtimes in One Service
This example demonstrates how you can run multiple runtimes in AWS Lambda.
nodeJS
AWS Serverless Alexa Skill example in NodeJS
This example demonstrates how to setup your own Alexa skill using AWS Lambdas.
nodeJS
API Gateway Authorizer Function for Auth0 or AWS Cognito using RS256 JSON Web Key Sets tokens.
Authorize your API Gateway with either Auth0 or Cognito JWKS RS256 tokens.
nodeJS
AWS API Gateway Custom Authorizer Function with Auth0 example in NodeJS
This is an example of how to protect API endpoints with Auth0, JSON Web Tokens (jwt) and a custom authorizer lambda function.
nodeJS
Dynamic Image Resizing API
This example shows you how to setup a dynamic image resizer API
nodeJS
DynamoDB Streams Processing to S3
This example shows you how to consume a DynamoDB Stream, transform records, and archive them to S3.
nodeJS
AWS Storing Encrypted Secrets example in NodeJS
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 Serverless Environment Variables Usage example in NodeJS
This example demonstrates how to use environment variables for AWS Lambdas.
nodeJS
Node Express API on AWS
This template demonstrates how to develop and deploy a simple Node Express API running on AWS Lambda using the Serverless Framework.
nodeJS
Node Express API service backed by DynamoDB on AWS
This template demonstrates how to develop and deploy a simple Node Express API service backed by DynamoDB running on AWS Lambda using the Serverless Framework.
nodeJS
AWS Fetch image from URL and upload to S3 example in NodeJS
This example display how to fetch an image from remote source (URL) and then upload this image to a S3 bucket.
nodeJS
Serverless Github Check
The idea is to validate that all Pull Requests are related to a specific trello card.
nodeJS
AWS Serverless Github Webhook Listener example in NodeJS
This service will listen to github webhooks fired by a given repository.
nodeJS
GraphQL query endpoint in NodeJS on AWS with DynamoDB
A single-module GraphQL endpoint with query and mutation functionality.
nodeJS
AWS Serverless IoT Event example in NodeJS
This example demonstrates how to setup a AWS IoT Rule to send events to a Lambda function.
nodeJS
Node.js AWS Lambda connecting to MongoDB Atlas
Shows how to connect AWS Lambda to MongoDB Atlas.
nodeJS
Running Puppeteer on AWS Lambda
This example shows you how to run Puppeteer on AWS Lambda
nodeJS
AWS Recursive Lambda function Invocation example in NodeJS
This is an example of a function that will recursively call itself.
nodeJS
AWS Analyse Image from S3 with Amazon Rekognition example in NodeJS
This example shows how to analyze an image in an S3 bucket with Amazon Rekognition and return a list of labels.
nodeJS
Serverless MongoDB Rest API with Mongoose and Bluebird Promises
This example demonstrate how to use MongoDB with AWS and Serverless.
nodeJS
AWS Simple HTTP Endpoint example in NodeJS with Typescript
This template demonstrates how to make a simple REST API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v1.
nodeJS
Serverless Nodejs Rest API with TypeScript And MongoDB Atlas
This is simple REST API example for AWS Lambda By Serverless framwork with TypeScript and MongoDB Atlas.
nodeJS
AWS Serverless REST API with DynamoDB and offline support example in NodeJS
This example demonstrates how to run a service locally, using the 'serverless-offline' plugin. It provides a REST API to manage Todos stored in DynamoDB.
nodeJS
AWS Serverless REST API example in NodeJS
This example demonstrates how to setup a RESTful Web Service allowing you to create, list, get, update and delete Todos. DynamoDB is used to store the data.
nodeJS
AWS Simple HTTP Endpoint example in NodeJS
This template demonstrates how to make a simple REST API with Node.js running on AWS Lambda and API Gateway using the traditional Serverless Framework.
nodeJS
AWS Simple HTTP Endpoint example in NodeJS
This template demonstrates how to make a simple HTTP API with Node.js running on AWS Lambda and API Gateway using the Serverless Framework.
nodeJS
AWS Serverless HTTP API example in NodeJS
This example demonstrates how to setup an HTTP API allowing you to create, list, get, update and delete Todos. DynamoDB is used to store the data.
nodeJS
AWS Serverless HTTP API with DynamoDB and offline support example in NodeJS
This example demonstrates how to run a service locally, using the 'serverless-offline' plugin. It provides an HTTP API to manage Todos stored in DynamoDB.
nodeJS
Serverless MongoDB HTTP API with Mongoose and Bluebird Promises
This example demonstrate how to use MongoDB with AWS and Serverless.
nodeJS
AWS Simple HTTP Endpoint example in NodeJS with Typescript
This template demonstrates how to make a simple HTTP API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v1.
nodeJS
TypeScript Serverless HTTP API with DynamoDB
This example shows your how to create a TypeScript powered HTTP API with DynamoDB.
nodeJS
AWS S3 File Replicator
This example creates 2 AWS S3 buckets and copies files in one bucket to the other
nodeJS
AWS Node Scheduled Cron example in NodeJS
This is an example of creating a function that runs as a cron job using the serverless ''schedule'' event.
nodeJS
AWS Serving Dynamic HTML via API Gateway example in NodeJS
This example illustrates how to hookup an API Gateway endpoint to a Lambda function to render HTML on a GET request.
nodeJS
The Serverless Gong
A serverless gong with GitHub and Slack webhooks
nodeJS
AWS SES receive emails and process body
This example shows how to process receiving emails, and have S3 trigger a lambda function.
nodeJS
AWS SES receive an email, trigger a lambda function to process header.
This example shows how to process receiving email header, and trigger a lambda function.
nodeJS
Shared AWS API Gateway with multiple Node Lambdas
A sample of implementing shared API gateway with multiple Node Lambdas
nodeJS
AWS Node Signed Uploads
The approach implemented in this service is useful when you want to use Amazon API Gateway and you want to solve the 10MB payload limit
nodeJS
AWS Simple HTTP Endpoint example in NodeJS
This example demonstrates how to setup a simple HTTP GET endpoint. Once you ping it, it will reply with the current time.
nodeJS
Simple AWS Transcribe example in NodeJS
This example demonstrates how to setup a lambda function to transcribe your audio file (.wav format) into a text transcription. The lambda will be triggered whenever a new audio file is uploaded to S3 and the transcription (JSON format) will be saved to a S3 bucket.
nodeJS
AWS Single Page Application example in NodeJS
This example demonstrates how to setup a Single Page Application.
nodeJS
Node SQS Producer Consumer on AWS
This template demonstrates how to develop and deploy a simple SQS-based producer-consumer service running on AWS Lambda using the traditional Serverless Framework.
nodeJS
AWS Stripe Integration example in NodeJS
This example for Stripe integration using AWS Lambda and API Gateway.
nodeJS
Simple Telegram bot
This is a simple echo bot on Telegram.
nodeJS
AWS Data Processing example in NodeJS
This example demonstrates how to setup a simple data processing pipeline.
nodeJS
AWS Send SMS Message with Twilio example in NodeJS
This example demonstrates how to send SMS messages with the Twilio SDK and AWS lambda.
nodeJS
AWS Apollo Lambda (NodeJS & Typescript)
This example provides a setup for a Lambda Graphql API with apollo
nodeJS
AWS Kinesis Data Streams Example (NodeJS & Typescript)
Produce and Consume data on a Kinesis Data Stream with Typescript.
nodeJS
AWS Nest application example (NodeJS & Typescript)
This example demonstrates how to setup a simple Nest application.
nodeJS
TypeScript Serverless REST API with DynamoDB
This example shows your how to create a TypeScript powered REST API with DynamoDB.
nodeJS
AWS SQS Standard Example (NodeJS & Typescript)
This example demonstrates how to setup a SQS with Typescript.
nodeJS
AWS Upload a file to S3 to trigger a Lambda function example in NodeJS
This example shows how to upload a file to S3 using a HTML form, and have S3 trigger a lambda function.
nodeJS
Simple Websocket Authorizers
The example shows you how to deploy simple websocket authorizers
nodeJS
AWS NodeJS Example
This template demonstrates how to deploy a simple NodeJS function running on AWS Lambda using the Serverless Framework.
nodeJS
AWS Serverless Alexa Skill example in Python
This example demonstrates how to setup your own Alexa skill using AWS Lambdas.
python
AWS API Gateway Custom Authorizer Function with Auth0 example in Python
This is an example of how to protect API endpoints with Auth0, JSON Web Tokens (jwt) and a custom authorizer lambda function in Python 3.
python
Python Flask API on AWS
This template demonstrates how to develop and deploy a simple Python Flask API running on AWS Lambda using the Serverless Framework.
python
Python Flask API backed by DynamoDB on AWS
This template demonstrates how to develop and deploy a simple Python Flask API service backed by DynamoDB running on AWS Lambda using the Serverless Framework.
python
Simple LINE bot
This is a simple echo bot on LINE bot.
python
AWS Serverless REST API with DynamoDB store and presigned URLs example in Python 3.6.
This example demonstrates how to setup a RESTful Web Service allowing you to create, list, get, update and delete Assets. DynamoDB is used to store the data.
python
AWS Serverless REST API with DynamoDB store example in Python
This example demonstrates how to setup a RESTful Web Service allowing you to create, list, get, update and delete Todos. DynamoDB is used to store the data.
python
AWS Python Rest API with Pymongo
AWS Python Rest API with Pymongo Example
python
AWS Serverless REST API with DynamoDB store example in Python
This example demonstrates how to setup a RESTful Web Service allowing you to create, list, get, update and delete Todos. DynamoDB is used to store the data.
python
AWS Simple HTTP Endpoint example in Python
This template demonstrates how to make a simple REST API with Python running on AWS Lambda and API Gateway using the traditional Serverless Framework.
python
AWS Simple HTTP Endpoint example in Python
This template demonstrates how to make a simple HTTP API with Python running on AWS Lambda and API Gateway using the Serverless Framework.
python
AWS Serverless HTTP API with DynamoDB store example in Python
This example demonstrates how to setup an HTTP API allowing you to create, list, get, update and delete Todos. DynamoDB is used to store the data.
python
AWS Serverless HTTP API with DynamoDB store example in Python
This example demonstrates how to setup an HTTP API allowing you to create, list, get, update and delete Todos. DynamoDB is used to store the data.
python
AWS Python Scheduled Cron example in Python
This is an example of creating a function that runs as a cron job using the serverless ''schedule'' event.
python
AWS Simple HTTP Endpoint example in Python
This example demonstrates how to setup a simple HTTP GET endpoint. Once you ping it, it will reply with the current time.
python
Python SQS Producer Consumer on AWS
This template demonstrates how to develop and deploy a simple SQS-based producer-consumer service running on AWS Lambda using the traditional Serverless Framework.
python
Python Telegram Bot
This example demonstrates how to setup an echo Telegram Bot using the Serverless Framework.
python
AWS Python Example
This template demonstrates how to deploy a Python function running on AWS Lambda using the Serverless Framework.
python
Ruby LINE bot
This example shows you how to create a LINE bot using Ruby.
ruby
AWS Simple HTTP Endpoint example in Ruby
This example demonstrates how to setup a simple HTTP GET endpoint. Once you ping it, it will reply with the current time.
ruby
Ruby Sinatra API backed by DynamoDB on AWS
This template demonstrates how to develop and deploy a simple Ruby Sinatra API service backed by DynamoDB running on AWS Lambda using the traditional Serverless Framework.
ruby
AWS Ruby scheduled cron example backed by DynamoDB
This is an example of creating a function that runs as a cron job using the serverless 'schedule' event. With the usage of the AWS Lambda function, it creates a record to the DynamoDB each and every 30 minutes.
ruby
AWS Ruby Step Functions
AWS Ruby example that make usage of AWS Step Functions with AWS Lambda, DynamoDB and Step Functions flows.
ruby
AWS Ruby Step Functions Express
Ruby example that make usage of AWS Step Functions Express Type with AWS Lambda, DynamoDB, Amazon SES, API Gateway, and Step Functions flows.
ruby
AWS Ruby Step Functions with Callback
Ruby example that make usage of AWS Step Functions with callback pattern, AWS Lambda, DynamoDB, Amazon Comprehend, API Gateway, and Step Functions flows.
ruby
Serverless AWS Ruby SQS with DynamoDB example
A serverless ruby example that creates DynamoDB records with the usage of SQS, API Gateway, and AWS Lambda functions.
ruby
AWS Serverless Boilerplate example in Rust
This example shows a Serverless boilerplate in Rust.
rust
Serverless Framework Sandboxes: Complete AWS Lambda MicroVM Example
Deploy-as-is showcase of every sandboxes property: Dockerfile build, memory, hooks, observability, IAM, and tags.
nodeJS
Serverless Framework Sandboxes: Minimal AWS Lambda MicroVM Example
Smallest possible sandboxes configuration, using only the required artifact field and framework defaults.
nodeJS
Serverless Framework Sandboxes: Self-Hosted Webhook for Claude Managed Agents
Self-hosted AWS Lambda MicroVM sandbox per Claude Managed Agent session, launched on demand by a webhook.
nodeJS
Bedrock AgentCore: LangGraph Basic Agent, Code Deploy (JavaScript)
Minimal LangGraph JS agent built automatically from source with no Dockerfile, deployed to AWS Bedrock AgentCore.
nodeJS
Bedrock AgentCore: LangGraph Basic Agent, Dockerfile Deploy (JavaScript)
Minimal LangGraph JS agent deployed to AWS Bedrock AgentCore via a custom Dockerfile build.
nodeJS
Bedrock AgentCore: LangGraph Agent with Managed Browser (JavaScript)
LangGraph JS agent using the AWS-managed AgentCore Browser tool for web navigation and screenshots.
nodeJS
Bedrock AgentCore: LangGraph Agent with Custom Browser (JavaScript)
LangGraph JS agent using a custom AgentCore Browser resource with session recording to S3.
nodeJS
Bedrock AgentCore: LangGraph Agent with Managed Code Interpreter (JavaScript)
LangGraph JS agent using the AWS-managed AgentCore Code Interpreter for sandboxed code execution.
nodeJS
Bedrock AgentCore: LangGraph Agent with Custom Code Interpreter (JavaScript)
LangGraph JS agent using a custom AgentCore Code Interpreter with PUBLIC network access.
nodeJS
Bedrock AgentCore: LangGraph Comprehensive Agent (JavaScript)
LangGraph JS agent combining Gateway tools, a direct MCP connection, browser, code interpreter, and memory in one deployment.
nodeJS
Bedrock AgentCore: LangGraph Agent with Gateway Tools (JavaScript)
LangGraph JS agent exposing Lambda-backed tools through an AgentCore Gateway over MCP.
nodeJS
Bedrock AgentCore: LangGraph Agent with Memory (JavaScript)
LangGraph JS agent using AgentCore Memory to persist and recall conversation history.
nodeJS
Bedrock AgentCore: LangGraph Multi-Gateway Agents (JavaScript)
LangGraph JS agents using separate public and private AgentCore Gateways with different authorization levels.
nodeJS
Bedrock AgentCore: LangGraph Agent with Token Streaming (JavaScript)
LangGraph JS agent streaming LLM tokens in real time over SSE via BedrockAgentCoreApp.
nodeJS
Bedrock AgentCore: Standalone MCP Server (JavaScript)
Standalone JavaScript MCP server deployed to AWS Bedrock AgentCore Runtime, consumable by any MCP client.
nodeJS
Bedrock AgentCore: Strands Agent with Browser (JavaScript)
Strands Agents JavaScript agent using AgentCore Browser tools for web automation.
nodeJS
Bedrock AgentCore: LangGraph Basic Agent, Code Deploy (Python)
Minimal LangGraph agent deployed to AWS Bedrock AgentCore using code (zip) deployment.
python
Bedrock AgentCore: LangGraph Basic Agent, Docker Deploy (Python)
Minimal LangGraph agent deployed to AWS Bedrock AgentCore using Docker/container deployment.
python
Bedrock AgentCore: LangGraph Agent with Managed Browser (Python)
LangGraph agent using AgentCore Browser via LangChain's browser toolkit for web automation.
python
Bedrock AgentCore: LangGraph Agent with Custom Browser (Python)
LangGraph agent using a custom AgentCore Browser resource with session recording to S3.
python
Bedrock AgentCore: LangGraph Agent with Managed Code Interpreter (Python)
LangGraph agent using the AWS-managed AgentCore Code Interpreter (SANDBOX mode) for Python execution.
python
Bedrock AgentCore: LangGraph Agent with Custom Code Interpreter (Python)
LangGraph agent using a custom AgentCore Code Interpreter with PUBLIC network mode.
python
Bedrock AgentCore: LangGraph Agent with Gateway Tools (Python)
LangGraph agent exposing custom Lambda function tools via an auto-created AgentCore Gateway.
python
Bedrock AgentCore: LangGraph Agent with Memory (Python)
LangGraph agent using AgentCore Memory as a tool for recalling and saving conversation history.
python
Bedrock AgentCore: LangGraph Multi-Gateway Agents (Python)
LangGraph agent using multiple AgentCore Gateways with different authorization types and tool subsets.
python
Bedrock AgentCore: Strands Agent with Browser (Python)
Strands Agents agent using AgentCore Browser for web automation and research tasks.
python
Serverless Compose of Serverless, Cloudformation, and SAM
This template shows how to compose multiple services using different frameworks, in a single project
nodeJS

Community Examples

Examples maintained by the community in their own repositories.

Example Runtime
Serverless Lambda S3 Demonstration
This project demonstrates how the Serverless Framework can be used to deploy a NodeJS Lambda function that responds to events in an S3 bucket.
nodeJS
Spiderless, Web Spider on Serverless
A web spider / scraper / website change detector built with Lambda, API Gateway, DynamoDB and SNS
nodeJS
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.
java
Serverless Architecture Boilerplate
Boilerplate to organize and deploy big projects using Serverless and CloudFormation on AWS
nodeJS
JwtAuthorizr
Custom JWT Authorizer Lambda function for Amazon API Gateway with Bearer JWT
nodeJS
Slack signup serverless
Serverless signup to Slack and more. Lambda with Python, StepFunctions, and Web front end. Python boilerplate included.
python
Serverless graphql api
Serverless GraphQL API using Lambda and DynamoDB
nodeJS
Serverless screenshot
Serverless Screenshot Service using PhantomJS
nodeJS
Serverless postgraphql
GraphQL endpoint for PostgreSQL using postgraphql
nodeJS
Serverless messenger boilerplate
Serverless messenger bot boilerplate
nodeJS
Serverless npm registry
Serverless private npm registry, proxy and cache.
nodeJS
Serverless facebook quotebot
100% Serverless Facebook messenger chatbot which will respond with inspiring quotes
nodeJS
Serverless slack trevorbot
Slack bot for info on where in the world is Trevor Gerhardt?
nodeJS
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.
nodeJS
Plaid cashburndown service
Service for calculating cash burndown with plaid. Frontend code can be found here: https://github.com/cplee/cashburndown-site
nodeJS
Cordis serverless
A serverless API for EU Cordis data
nodeJS
Serverless newsletter signup
Saves user details into DynamoDB table. Required values are email, first_name and last_name.
nodeJS
Serverless slack cron
Lambda function which sends messages to Slack channel in regular intervals via cron trigger.
nodeJS
Sls access counter
Site visitor counter
nodeJS
Sls form mail
Send SNS email from form data
nodeJS
Serverless python sample
A simple serverless python sample with REST API endpoints and dependencies
python
Serverless slack emojibot
Serverless slack bot for emoji
nodeJS
Serverless cloudwatch rds custom metrics
A NodeJS-based MySQL RDS Data Collection script to push Custom Metrics to Cloudwatch with Serverless
nodeJS
Sc5 serverless boilerplate
A boilerplate that contains setup for test-driven development
nodeJS
Serverless blog to podcast
Service that reads RSS feed and converts the entries to a podcast feed and audio files using Amazon Polly
nodeJS
Serverless url shortener
A simple url-shortener, using Serverless framework
nodeJS
Serverless html pdf
Service that convert HTML to PDF using PhantomJS's rasterize example.
nodeJS
Serverless examples cached rds ws
A serverless framework example project that uses API Gateway, ElastiCache, and RDS PostgreSQL.
java
Bittman
A serverless project that follows a stock trading algorithm and uses scheduled functions to save data to DynamoDB and send emails through Mailgun.
nodeJS
Adoptable pet bot
Tweets adoptable pets using Serverless (Node.js) and AWS Lambda
nodeJS
Owntracks serverless
A serverless implementation of the OwnTracks HTTP backend
nodeJS
Serverless ReactJS Universal Rendering Boilerplate
ReactJS web app Starter kit does universal (isomorphic) rendering with Serverless
nodeJS
Open Bot
An unoptionated Github bot driven by a configuration file in the repository
nodeJS
Aws ses serverless example
AWS SES example in NodeJS using lambda
nodeJS
SQS Worker with AWS Lambda and CloudWatch Alarms
Process messages stored in SQS with an auto-scaled AWS Lambda worker function.
nodeJS
Serverless image manager
image upload / download with resizing. Used API gateway's binary support & serverless
nodeJS
Amazon Kinesis Streams fan out via Kinesis Analytics
Use Amazon Kinesis Analytics to fan-out your Kinesis Streams and avoid read throttling.
nodeJS
HoneyLambda
a simple, serverless application designed to create and monitor URL {honey}tokens, on top of AWS Lambda and Amazon API Gateway
python
Faultline
Error tracking tool on AWS managed services.
nodeJS
Stack Overflow Monitor
Monitor Stack Overflow questions and post them in a Slack channel
nodeJS
Serverless Analytics
Write your own Google Analytics clone and track website visitors serverless with API Gateway, Kinesis, Lambda, and DynamoDB.
nodeJS
Serverless + medium text to speech
Serverless-based, text-to-speech service for Medium articles
nodeJS
Serverless + java DynamoDB imlementation example
example for java programmers that want to work with AWS-Lambda and DynamoDB
java
AWS Cognito Custom User Pool Example
Example CloudFormation custom resource backed by a lambda using Cognito User Pools
nodeJS
AWS Lambda, Amazon API Gateway, S3, DynamoDB and Cognito Example
Step by step guide how to deploy simple web application on top of AWS Lambda, Amazon API Gateway, S3, DynamoDB and Cognito.
nodeJS
Run your Kubernetes Workloads on Amazon EC2 Spot Instances with Amazon EKS and Lambda Part 1
From this tutorial you'll learn how to add AWS EKS Cluster with Spot Instances to your cloud environment managed by Serverless framework
python
Serverless + lambda protobuf responses
Demo using API Gateway and Lambda with Protocol Buffer
nodeJS
Serverless + lambda + vpc + nat + redis
Demo using API Gateway and Lambda with VPC and NAT to access Internet and AWS Resource
nodeJS
Serverless Gitlab CI
Simple Gitlab CI template for automatic testing and deployments
nodeJS
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).
nodeJS
Serverless Kakao Bot
Easy development for Kakaotalk Bot with Serverless
nodeJS
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
nodeJS
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
python
Serverless Instagram Crawler
Instagram hashtag Crawler with Lambda & DynamoDB.
nodeJS
Serverless Next.js Example
Next.js example project for development & deploy.
nodeJS
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
nodeJS
Lambda PubSub via SNS Example
Example illustrating the flow: Lambda (publisher) => SNS => Lambda (consumer)
nodeJS
Serverless CloudWatch Proxy
Logging adapter that consumes log streams from AWS CloudWatch, streams them to other log destinations. Also capable of identying alerts and sending notifications via Slack/Email
python
Serverless side rendering with Vue.js and Nuxt.js
Sample project for using Nuxt.js to create a server-side rendered Vue.js app on AWS Lambda and AWS API Gateway. Can easily integrate with your own API or 3rd party APIs such as headless CMS, e-commerce or serverless architecture.
nodeJS
Aws mfa enforce
Serverless function to automate enforcement of Multi-Factor Authentication (MFA) to all AWS IAM users with access to AWS Management Console.
nodeJS
Vanity stargazer
Github vanity-stargazer is a serverless application to handle posting Github new star gazers to Slack
python
Fotopia Serverless
A photo archive web app including API, storage and face detection using serverless framework
nodeJS
Commenting API
A commenting api using Serverless Typescript GraphQl and Redis
nodeJS
Serverless node api dynamodb neo4j
Architecture example to stream DynamoDB data to a read-model using Neo4j
nodeJS
Serverless python rds cron
A serverless python example that periodically removes entries from AWS RDS
python
Nietzsche
A serverless application that fetches quotes from Goodreads and saves it to DynamoDB with example use cases using Lambda, SNS, SQS, Step Functions, DynamoDB, API Gateway, CloudWatch
nodeJS
Serverless DotNet BoilerPlate
A serverless starter solution for .NET Core, ready for local debugging in VS Code, HTTP Endpoint, etc.
dotnet
Serverless Load Balancer
A sample that shows how to combine a load balancer with (vpc/subnet configuration) with a lambda.
nodeJS
Serverless api typescript template
A starter template for a Serverless API using Typescript and Jest
nodeJS
Serverless SNS SQS offline Example
Minimal example of running serverless-offline with SQS and SNS in local environment.
nodeJS
Serverless RDS Log Sync S3
Annotated exmaple of a periodic scheduled task to sync changed RDS log files to an S3 bucket.
python
Serverless Image Labeller
Serverless image labelling using Rekognition, s3, DynamoDB.
python
Serverless AppSync offline TypeScript with CircleCI
A Serverless Framework template that allows you to launch an AppSync emulator locally and proceed with development. Lambda Function build by TypeScript/Webpack.
nodeJS
Serverless Screenshot to S3
An example serverless stack which takes a screenshot using aws-chrome-lambda and puts it in s3. NodeJS.
nodeJS
Express Application With Lambda
This example demonstrates how to build an express application for AWS Lambda based on serverless framework.
nodeJS
DropBucket - Serverless file sharing
A serverless file sharing app powered by Cognito/S3/Lambda/API Gateway. Includes a React single-page app UI and virus scanning.
nodeJS
serverless-react-boilerplate
A serverless react boilerplate for offline development
nodeJS
serverless-delivery-framework
This is a boilerplate for version release pipeline with serverless framework
nodeJS
serverless-mailgun-slack
A Serverless function for posting to a Slack Webhook in response to a Mailgun route
nodeJS
serverless-AWS-Rekognition-finpics
Use AWS Rekognition to provide a faces search of finpics.com
nodeJS
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)
java
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.
golang
video-preview-and-analysis-service
An event-driven service that generates labels using Amazon Rekognition and creates preview GIF animation from a video file.
nodeJS
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
nodeJS
AWS Lambda Power Tuning (powered by Step Functions)
Build a Step Functions state machine to optimize your AWS Lambda Function memory/power configuration.
nodeJS
React & Stripe Serverless Ecommerce
Serverless E-Commerce App with AWS Lambda, Stripe and React
nodeJS
JSON-Serverless
A simple & cheap serverless REST API using json-server in combination with AWS Lambda / S3 and the serverless framework
nodeJS
GoLive
Boilerplate to live stream using AWS MediaLive and MediaStore
nodeJS
Idempotent Serverless Functions
This repository demonstrates how to ensure the idempotence of serverless functions running on AWS Lambda.
python
File uploads using S3 presigned URLs
A Serverless photo upload service with API Gateway, S3 presigned URLs and Lambda.
nodeJS
Monorepo Typescript microservices
An opinionated Serverless template with several Typescript microservices in a monorepo
nodeJS
Serverless Python Twitch EventSub to Discord Webhook on AWS
This template takes go-live events from Twitch EventSub, and publishes the events through a Discord webhook
python

Contributing

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

Adding example code

  1. Add a README.md to your example with a frontmatter HTML comment listing these required keys:

    • title
    • description
    • framework (use v4)
    • platform
    • language
    • authorLink
    • authorName
    • authorAvatar
  2. Add an entry for your example to examples.json.

  3. Validate your frontmatter and regenerate the README.md with:

npm run validate
npm run docs

Both commands must pass, and the regenerated README.md must be included in your PR.

  1. Open a new pull request with your example. Please make sure serverless package succeeds in your example's directory before submitting. ⚡️

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 an entry to examples.json with "community": true and a githubUrl pointing at your repository.

  2. Regenerate the README.md with:

npm run docs
  1. Open a new pull request with your example, including the regenerated README.md. ⚡️

About

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.

Topics

Resources

License

Stars

11.5k stars

Watchers

255 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors