Amazon API Gateway to AWS Lambda to Amazon DynamoDB

API Gateway → AWS Lambda → VPC Endpoint → Amazon DynamoDB

Create a Lambda function in VPC that receives a request from API Gateway and inserts a record into a DynamoDB table using VPC endpoint.

This pattern explains how to deploy a CDK application with Amazon API Gateway, AWS Lambda, VPC, VPC endpoint, and Amazon DynamoDB.

< 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/apigw-http-api-lambda-dynamodb-python-cdk

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Rupesh Tiwari

Rupesh Tiwari

Senior Solutions Architect at AWS Global Financial Services.

Follow on LinkedIn