GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Services
  • AWS Lambda
  • Amazon API Gateway
  • Amazon EventBridge
  • Amazon EventBridge Pipes
  • Amazon EventBridge Scheduler
  • Amazon S3
  • Amazon SQS
  • AWS Step Functions
  • Getting Started with AWS Lambda
  • Learning Guides
  • Live Workshops & Events
  • Blogs
  • Videos

This view

  • Original page
  • New address

GeezerVison is showing serverlessland.com — Serverless Land | AWS Lambda and Amazon Aurora Serverless v2

Webinar: Get Hands-On With ServerlessRegister now

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
Language:
Python
Framework:
AWS SAM

Download this pattern (.zip)

View this pattern on GitHub

Variants

This pattern is available in the following frameworks/languages:

AWS SAM:Node.jsPython
Terraform:Python

Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/lambda-aurora-serverless/python/sam

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Additional resources

  • Using the Data API for Aurora Serverless
  • Data API - ExecuteStatement
  • Using Aurora Serverless v2
  • 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.

    LinkedIn
    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.