Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

examples

> 编程语言
Open source

Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure,

11.5K stars0 likes5 views
WebsiteGitHub

About

Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure,




Serverless Examples

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

Table of Contents

Click to expand
  • Getting Started
  • Examples
  • Community Examples
  • Contributing
    • Adding example code
    • Adding a community example

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:

bash
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
AWS Lambda container image with SnapStart (NodeJS)
Deploy a Node.js Lambda function as a container image with SnapStart enabled, including the Dockerfile label that makes a non-Java/Python/.NET image snapshot-ready.
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 Node.js ES Module Bundles with esbuild
This example demonstrates how to bundle TypeScript handlers as ES modules (.mjs) with the built-in esbuild support, without adding a package.json to the deployment artifact.
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
AWS MCP Server behind API Gateway REST (NodeJS)
Run an MCP server built with the official MCP TypeScript SDK on AWS Lambda, with streaming responses through API Gateway REST response streaming.
nodeJS
AWS MCP Server on Lambda Function URL (NodeJS)
Run an MCP server built with the official MCP TypeScript SDK on a Lambda Function URL with response streaming - no API Gateway.
nodeJS
AWS MCP Server with Hono (NodeJS)
Run an MCP server on AWS Lambda with the official MCP Hono integration and Hono's aws-lambda adapter - no hand-written Lambda glue at all.
nodeJS
AWS MCP Server with Express and Lambda Web Adapter (NodeJS)
Run an MCP server as a plain Express app on AWS Lambda with Lambda Web Adapter - zip deployment, streaming through API Gateway REST.
nodeJS
AWS MCP Server, minimal (NodeJS)
Deploy an MCP server built with the official MCP TypeScript SDK to AWS Lambda with the Serverless Framework - one module, one line of configuration.
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](https://githu

Issues· 181 open

View all issuesOpen on GitHub
  • #279

    Lambda was unable to decrypt the environment variables because KMS access was denied

    Updated May 1, 2026
  • #809

    ENOTDIR error on starter project

    Updated Aug 11, 2025
  • #793

    aws-node-mongodb-atlas code outdated

    Updated Jun 21, 2025
  • #482

    aws-node-puppeteer - {"message": "Internal server error"}

    Updated Sep 18, 2024
  • #784

    Curious about the Polyfills issue

    Updated Jun 29, 2024
  • #772

    Error: The "serverless-plugin-chrome" plugin only supports the Node.js 6.10 or 8.10 runtimes. Your service is using the "nodejs18.x" provider.

    Updated Jun 11, 2024
  • #782

    Unable to Retrieve Bot Response: ERR_NAME_NOT_RESOLVED and 403 Forbidden Error in Flask Application deployment on AWS

    Updated Apr 23, 2024
  • #689

    Value not found at "self" source

    Updated Mar 26, 2024
  • #446

    How to pass expire token error in custom authoriser for API gateway response

    Updated Feb 27, 2024
  • #773

    serverless-dynamodb-local examples need updating

    Updated Feb 5, 2024

> Tags

JavaScriptexamplesserverlessserverless-framework

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言