Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

Serverless Patterns Collection

Submit a pattern
Filters (913 templates)
IaC Framework

Language

Services

Use serverless patterns to quickly build integrations using AWS SAM and CDK templates. Filter by pattern and copy the template directly into your application.

Created with SnapAmazon MQAWS Lambdaevent source mapping
Event driven Amazon MQ for ActiveMQ message processing using AWS Lambda

This sample project demonstrates event driven message processing from an Amazon MQ for ActiveMQ queue using an AWS Lambda function written in Java.

Created with SnapAmazon MQ BrokerAWS Lambda
ActiveMQ to Lambda

ActiveMQ broker with Lambda as an event source

Created with SnapAmazon MQ for RabbitMQ Region 1Amazon MQ for RabbitMQ Region 2Message federation
Multi-Region message replication with Amazon MQ for RabbitMQ

Replicate messages from one Region to another in Amazon MQ for RabbitMQ

Created with SnapEventBridge Partner event sourceAWS LambdaAmazon CloudWatch Logs
Adobe I/O Events to AWS Lambda with Amazon EventBridge

Use EventBridge Adobe I/O Events Integration to process order events with AWS Lambda, send notifications via SES, or store data in other AWS services.

Created with SnapApplication Load BalancerAmazon CognitoAWS Lambda
ALB, Amazon Cognito and Lambda integration

Create an ALB, Cognito and Lambda integration to fetch regional metrics

Created with SnapApplication Load BalancerAWS FargateAmazon Bedrock
AI-Powered ChatBot with Bedrock Agent, OpenSearch, and ECS

Create a serverless AI ChatBot using Bedrock agent, OpenSearch, Lambda, and ECS with ALB in AWS.

Created with SnapApplication Load BalancerAWS Fargate
Deploying Spring Boot App on Amazon ECS/AWS Fargate with Application Load Balancer

This sample project deploys a Java 21 Spring Boot App on Amazon ECS Fargate with Application Load Balancer to route traffic between two ECS Tasks.

Created with SnapApplication Load BalancerAWS Lambda
Application Load Balancer with Lambda as a target

Create an Application Load Balancer with Lambda as target using CDK

Created with SnapApplication Load BalancerAWS LambdaAWS Lambdaapi/service1api/service2
Application Load Balancer with multiple Lambda functions as a target

Create an Application Load Balancer with Lambda functions as targets

Created with SnapApplication Load BalancerAWS Lambda
Application Load Balancer with Lambda as target

Create an Application Load Balancer with Lambda as target using Pulumi

Created with SnapApplication Load BalancerAWS Lambda
Application Load Balancer with Lambda as target

Create an Application Load Balancer with Lambda as target using Pulumi

Created with SnapApplication Load BalancerAWS Lambda
Application Load Balancer with Lambda as target

Create an Application Load Balancer with Lambda as target using Pulumi

Created with SnapApplication Load BalancerAWS Lambda
Application Load Balancer with Lambda as target

Create an Application Load Balancer with Lambda as target using Pulumi

Created with SnapApplication Load BalancerAWS Lambda
Application Load Balancer with Lambda as target

Create an Application Load Balancer with Lambda as target using Pulumi

Created with SnapApplication Load BalancerAWS Lambda
Application Load Balancer with Lambda as target

Create an Application Load Balancer with Lambda as target using Pulumi

Created with SnapApplication Load BalancerAWS Lambdaroute-based listener
ALB with route-based listener rules to AWS Lambda

This pattern creates an Application Load Balancer with route-based listener rules, paired with an AWS Lambda function as the target.

Created with SnapApplication Load BalancerAWS Lambda
Application Load Balancer to Lambda

Create an Application Load Balancer that invokes an AWS Lambda function.

Created with SnapApplication Load BalancerAWS Lambda
Application Load Balancer with Lambda as a target

Create an Application Load Balancer with Lambda as target

Created with SnapApplication Load BalancerAWS Lambda
Application Load Balancer to Lambda

Create an Application Load Balancer with Lambda as target using Terraform

Created with SnapApplication Load BalancerAWS LambdaAWS Lambdarule:(api/service1)rule:(api/service2)
Application Load Balancer (path-based-route) to AWS Lambda

Create an Application Load Balancer with path-based routing using AWS Lambda as target

Created with SnapAmazon EventBridge ruleAWS LambdaAmazon EC2
AMI de-registration with AWS Lambda and retention in Amazon EC2 Recycle Bin

This project demonstrates a pattern to deregister and retain expired AMI and its snapshot with AWS Lambda and Amazon EC2 Recycle Bin

Created with SnapAWS AmplifyAPI GatewayAWS LambdaCognito
Amplify to API Gateway with Cognito

Create an Amplify frontend that calls Amazon API Gateway using Cognito

Created with SnapAWS CodeCommitAWS Amplify
AWS CodeCommit to AWS Amplify Web App

Create a CodeCommit repository and deploy an Amplify web application from a local folder.

Created with SnapAPI Gateway REST APIAWS LambdaAmazon SES
Amazon API Gateway REST API to AWS Lambda and Amazon SES

This sample project demonstrates how to publish an email using Amazon SES (Amazon Simple Email Service) by invoking a Lambda function via a REST API

Created with SnapAPI GatewayAmazon SQSAWS Lambda
API Gateway HTTP API to SQS to Lambda

This sample project demonstrates how to crate an Amazon API Gateway HTTP API that integrates with an Amazon SQS queue.

Created with SnapAPI Gateway HTTP APIAmazon EventBridge
API Gateway HTTP API to Amazon EventBridge

Create an HTTP API endpoint that directly integrates with Amazon EventBridge

Created with SnapAPI Gateway HTTP APIAmazon EventBridge
API Gateway HTTP API with custom domain to EventBridge

Create an HTTP API endpoint with a custom domain that integrates with EventBridge

Created with SnapAPI Gateway HTTP APIAmazon EventBridge
API Gateway HTTP API to Amazon EventBridge

Create an HTTP API endpoint that directly integrates with Amazon EventBridge

Created with SnapAPI Gateway HTTP APIAmazon EventBridge
API Gateway HTTP API to Amazon EventBridge

Create an HTTP API endpoint that directly integrates with Amazon EventBridge

Created with SnapAPI Gateway HTTP APIAmazon EventBridge
API Gateway HTTP API to Amazon EventBridge

Create an HTTP API endpoint that directly integrates with Amazon EventBridge

Created with SnapAPI Gateway HTTP APIAmazon EventBridge
API Gateway HTTP API to Amazon EventBridge

Create an HTTP API endpoint that directly integrates with Amazon EventBridge

Created with SnapAPI Gateway HTTP APIAmazon EventBridge
API Gateway HTTP API to Amazon EventBridge

Create an HTTP API endpoint that directly integrates with Amazon EventBridge

Created with SnapAPI Gateway REST APIAmazon EventBridge
API Gateway REST API to Amazon EventBridge

Create an REST API endpoint that directly integrates with Amazon EventBridge

Created with SnapAPI Gateway REST APIAmazon EventBridge
API Gateway REST API to Amazon EventBridge

Create an REST API endpoint that directly integrates with Amazon EventBridge

Created with SnapAPI Gateway REST API
Amazon API Gateway with an HTTP integration

Create a API Gateway REST API with a public HTTP endpoint integration

Created with SnapAPI Gateway REST API
Amazon API Gateway with a mock integration

Create a API Gateway REST API with a mock endpoint integration

Created with SnapAPI Gateway
Amazon API Gateway regional custom domain

Create a regional custom domain in API Gateway

Created with SnapAPI Gateway REST APIAPI Gateway REST API
API Gateway REST to API Gateway REST

Create a primary API that centralizes configuration and securely proxies sub API endpoints.

Created with SnapAPI Gateway REST APIAmazon S3
Amazon API Gateway with a S3 integration

Create a REST API Gateway with a S3 read-only integration

Created with SnapAPI Gateway REST API
Amazon API Gateway with a VPC Link integration

Create a REST API Gateway with a VPC Link integration