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.
Customize cookie preferences
We use cookies and similar tools (collectively, "cookies") for the following purposes.
Essential
Essential cookies are necessary to provide our site and services and cannot be deactivated. They are usually set in response to your actions on the site, such as setting your privacy preferences, signing in, or filling in forms.
Performance
Performance cookies provide anonymous statistics about how customers navigate our site so we can improve site experience and performance. Approved third parties may perform analytics on our behalf, but they cannot use the data for their own purposes.
Allowed
Functional
Functional cookies help us provide useful site features, remember your preferences, and display relevant content. Approved third parties may set these cookies to provide certain site features. If you do not allow these cookies, then some or all of these services may not function properly.
Allowed
Advertising
Advertising cookies may be set through our site by us or our advertising partners and help us deliver relevant marketing content. If you do not allow these cookies, you will experience less relevant advertising.
Allowed
Blocking some types of cookies may impact your experience of our sites. You may review and change your choices at any time by clicking Cookie preferences in the footer of this site. We and selected third-parties use cookies or similar technologies as specified in the AWS Cookie Notice.
Use serverless patterns to quickly build integrations using AWS SAM and CDK templates. Filter by pattern and copy the template directly into your application.
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.
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.
API Gateway HTTP API to Amazon EventBridge
Create an HTTP API endpoint that directly integrates with Amazon EventBridge
Amazon API Gateway canary deployment
Create a serverless app using API Gateway and Lambda. Then create an API Gateway canary deployment
Amazon API Gateway HTTP API to AWS Lambda to RDS Proxy
Create an HTTP API endpoint that calls a Lambda function to RDS Proxy.
Amazon API Gateway HTTP API to AWS Step Functions Express Workflow
Create an API Gateway HTTP API endpoint that starts a Step Functions synchronous Express Workflow.
Amazon API Gateway to AWS Lambda to Amazon Bedrock
Make a request to Bedrock via API Gateway using Java and CDK
Invoking Amazon Bedrock Mistral 7B LLM using Java based AWS Lambda
This project deploys an Amazon API Gateway REST API with an AWS Lambda, written in Java, to call Amazon Bedrock API for Mistral 7B Instruct V0.2.
Amazon Cognito user management using Amazon API Gateway and AWS Lambda
Deploys Amazon Cognito user pool, Amazon API Gateway REST API with AWS Lambda integration for user creation, confirmation & token retrieval in Java.
Amazon API Gateway to AWS Lambda to Amazon DynamoDB
Make a request to API Gateway that saves data in DynamoDB.
Amazon API Gateway to AWS Lambda to Amazon EventBridge
Make a request to API Gateway that sends an event to EventBridge via Lambda.
Lambda to MemoryDB
Create Lambda Functions to interact with MemoryDB.
REST API with Amazon API Gateway, Amazon RDS and AWS Lambda with SnapStart
A pattern to show how to use Lambda SnapStart with relational databases.
Upload file up to 5GB to Amazon S3 bucket using presigned URL
This project deploys Amazon API Gateway with AWS Lambda integration. The Java based Lambda function generates presigned S3 URL.
Upload file to Amazon S3 bucket using presigned URL
Amazon API Gateway with AWS Lambda integration to showcase how to upload a file up to 5GB to Amazon S3 bucket using a presigned S3 URL.
API Gateway to Lambda with SnapStart deployed with Terraform
Create a Java Lambda function with SnapStart deployed with Terraform
Synchronous REST API with Lambda SnapStart
This pattern demonstrates how to create a synchronous REST API using API Gateway, AWS Lambda and DynamoDB.
Hello World AWS Lambda and Amazon API Gateway REST API
Create a simple Lambda function connected to a REST API.
API Gateway HTTP API to SQS to Lambda
Create an Amazon API Gateway HTTP API that integrates with an Amazon SQS queue.
API Gateway WebSocket API to SQS to AWS Lambda
Create an API Gateway WebSocket API that sends events to SQS and then to Lambda
EventBridge to Step Functions with SQS failure
Step Functions workflow to send failure events to SQS
Kinesis Data Stream to Lambda with error handling
Create a Java Lambda function with Event Source as Kinesis Data source
CloudFront to Lambda URLs
Front AWS Lambda Function URLs with Amazon CloudFront
DynamoDB Stream to AWS Lambda using CDK in Kotlin
Create an AWS Lambda function that receives DynamoDB change items.
DynamoDB to Lambda to EventBridge
Send DynamoDB table changes to EventBridge via Lambda.
DynamoDB to Lambda
Invoke a Lambda function from changes to a DynamoDB table using event-based filters
Amazon EventBridge to Amazon CloudWatch Logs
Create an EventBridge rule that sends events to CloudWatch Logs.
Amazon EventBridge to Amazon Data Firehose to Amazon S3 using Java CDK
Sets up EventBridge, Data Firehose, and a S3 bucket for event delivery with dynamic partitioning based on metadata.
Amazon SQS to Amazon EventBridge Bus using Amazon EventBridge Pipes
This pattern uses SQS and triggers EventBridge events directly with optional filtering supported.
Amazon SQS to AWS Step Functions using Amazon EventBridge Pipes
This pattern invokes a Step Functions workflow from an SQS queue with optional filtering supported.
Amazon EventBridge Scheduler to run Amazon Elastic Container Service task
Simple pattern that create an Amazon EventBridge Scheduler to run task in Amazon Elastic Container Service cluster every 15 minutes.
Amazon EventBridge Scheduler to AWS Lambda
Creates an EventBridge schedule to invoke a Java-based Lambda function every 5 minutes
Amazon EventBridge Schedule to Lambda
Creates an EventBridge schedule to run a Lambda every 5 minutes
Amazon EventBridge Schedule to Lambda
Creates an EventBridge schedule to run a Lambda every 5 minutes
Amazon EventBridge Scheduler to send messages to Amazon SNS
Simple pattern that publishes a message to an SNS topic every 5 minutes
Scheduled EventBridge rule for Lambda
Create an scheduled EventBridge rule that invokes a Lambda function
EventBridge Scheduler to Start State Manager Association
This pattern will create an EventBridge Scheduler to start State Manager Association once in AWS Systems Manager every 5 minutes.
Amazon EventBridge to Amazon SNS
Create an Amazon EventBridge rule that invokes an Amazon SNS topic.
Kinesis Firehose Data transformation with Lambda
Transform incoming source data and deliver the transformed data to destinations.
Kinesis Firehose Data Transformation with Lambda
Transform incoming source data and deliver the transformed data to S3.