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 v1

Webinar: Get Hands-On With ServerlessRegister now

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
Language:
Node.js
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/nodejs/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
  • AWS Lambda and Aurora Serverless v2
  • 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.

    LinkedInX
    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.