AWS Lambda and Amazon Aurora Serverless v2

AWS Lambda → Amazon Aurora

Creates a Lambda function with access to an Amazon Aurora Serverless v2 DB cluster.

This pattern creates an AWS Lambda function and an Amazon Aurora PostgreSQL DB in an Aurora Serverless v2 DB cluster with RDS Data API and a Secrets Manager secret.
The function creates an example table in the DB, inserts a row with data from the event object, then returns the results of a select query.

< 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/lambda-aurora-serverlessv2-postgresql

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Yusuf Mayet

Yusuf Mayet

I am a Solutions Architect at AWS, where I help customers realise that true transformation lies at the intersection of Cloud, DevOps cultural practices, Agile principles, modular and scalable architectures, and efficient team structures.

Follow on LinkedIn