Amazon Aurora Serverless v2 with AWS Lambda and Amazon Bedrock

AWS Lambda (Setup) → AWS Lambda (Query) → Aurora Serverless v2 → Amazon Bedrock

Deploy Aurora Serverless v2 with scale-to-zero, RDS Data API, and AWS Lambda functions that query stored knowledge and use Amazon Bedrock for AI answers

This pattern deploys an Amazon Aurora Serverless v2 PostgreSQL cluster (platform version 4 with up to 30% better performance) that scales to zero when idle. A setup AWS Lambda seeds a knowledge table, and a query AWS Lambda retrieves relevant context from Aurora and sends it to Amazon Bedrock for AI-powered answers.
Amazon Aurora Serverless v2 is ideal for agentic AI workloads with burst patterns and long idle windows. The enhanced scaling algorithm in platform version 4 efficiently handles workloads where multiple tasks compete for resources.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/aurora-serverless-v2-lambda-bedrock-cdk

Deploy

<code>cdk deploy</code>


Testing

See the README for testing instructions.

Cleanup

cdk destroy

Created by:

Nithin Chandran R

Nithin Chandran R

Technical Account Manager at AWS

Follow on LinkedIn