A Python microframework for writing and deploying serverless apps on AWS Lambda, with a CLI and decorator-based routing.
serverless/examples
A large collection of ready-to-deploy Serverless Framework boilerplates and example services for AWS Lambda and other serverless platforms.
- Stars
- 11,517
- Forks
- 4,350
- Open issues
- 181
- Last commit
- 9 days ago
What is it?
This repository collects ready-to-deploy example services built with the Serverless Framework, a tool for defining and deploying serverless applications. Most examples target AWS Lambda and are organized by runtime, including Node.js, Python, Go, Java, Ruby, Rust and .NET. Each example lives in its own folder with a README that explains the service and its use cases.
The examples cover common patterns: HTTP and REST APIs backed by DynamoDB or MongoDB, GraphQL endpoints, authorizers using Auth0 or Cognito, SQS and Kinesis workers, scheduled cron jobs, S3 and SES event triggers, Step Functions workflows, and Telegram, LINE and Alexa bots. Newer entries include MCP servers on Lambda, Bedrock AgentCore agents built with LangGraph and Strands, and Lambda Web Functions for Express and Next.js apps.
To use an example, clone the repository, enter the folder you want, and run the deploy command. The repository also includes a community section that links to examples maintained in separate repositories.
Key features
- 01Covers AWS Lambda examples in Node.js, Python, Go, Java, Ruby, Rust and .NET.
- 02Includes HTTP and REST APIs backed by DynamoDB or MongoDB.
- 03Provides auth examples using Auth0, Cognito and custom authorizers.
- 04Shows event-driven patterns with SQS, Kinesis, S3, SES and scheduled cron jobs.
- 05Contains MCP server and Bedrock AgentCore agent examples.
Use cases
- Learning how to structure a first serverless API on AWS Lambda.
- Starting a new Lambda service from a runtime-specific boilerplate.
- Adding API authentication with Auth0 or Cognito to a serverless backend.
- Building event-driven processing pipelines triggered by S3, SQS or DynamoDB Streams.
Quick start
- 1
Install the Serverless Framework CLI
npm install -g serverless - 2
Clone the examples repository
git clone https://github.com/serverless/examples - 3
Enter the folder of the example you want
cd examples/folder-name - 4
Deploy the example
serverless deploy
Things to know
- The repository has no clearly detected license, so check each example's terms before reuse.
- Each example is a separate project with its own dependencies and setup, so quality and maintenance vary.
In collections
Topics
FAQ
- What is examples?
- A large collection of ready-to-deploy Serverless Framework boilerplates and example services for AWS Lambda and other serverless platforms. This repository collects ready-to-deploy example services built with the Serverless Framework, a tool for defining and deploying serverless applications. Most examples target AWS Lambda and are organized by runtime, including Node.js, Python, Go, Java, Ruby, Rust and .NET. Each example lives in its own folder with a README that explains the service and its use cases.
- Is examples free to use? What license does it have?
- examples is open source under the Other license. Check the license terms before using it in commercial products.
- Is examples still maintained?
- Actively maintained. The last commit to examples was on Oct 28, 2026.
- What can I use examples for?
- Learning how to structure a first serverless API on AWS Lambda. Starting a new Lambda service from a runtime-specific boilerplate. Adding API authentication with Auth0 or Cognito to a serverless backend. Building event-driven processing pipelines triggered by S3, SQS or DynamoDB Streams.
- How do I install examples?
- Install the Serverless Framework CLI: npm install -g serverless Clone the examples repository: git clone https://github.com/serverless/examples Enter the folder of the example you want: cd examples/folder-name Deploy the example: serverless deploy
- Where can I get examples?
- The source code and installation instructions are on GitHub: https://github.com/serverless/examples
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Zappa deploys Python WSGI and ASGI web apps and event-driven functions to AWS Lambda and API Gateway, with no servers to manage.
A collection of ready-to-run example projects showing how to use Prisma ORM with Next.js, Express, GraphQL, and many databases.
A CLI and YAML-based framework for deploying code and cloud infrastructure, mainly on AWS Lambda and other managed cloud services.
A collection of code samples, SDK examples, schema design patterns and IaC templates for building on Amazon DynamoDB.
A curated collection of Vercel example apps, solutions and starter templates showing patterns for building apps on Vercel, mostly with Next.js.