AWS Lambda and Amazon Aurora Serverless v1

AWS Lambda → Amazon Aurora

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

This pattern creates an AWS Lambda function and an Amazon Aurora MySQL database version 2 (with MySQL 5.7 compatibility) in an Aurora Serverless version 1 DB cluster with 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.
For Aurora Serverless v2, please use another pattern

< 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

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Greg Davis

Greg Davis

I am a Principal Solutions Architect, Serverless Developer, Database Engineer, and Data Integration Architect. I specialize in architecting and developing Serverless, event-driven solutions.

Follow on LinkedIn