Amazon API Gateway to Amazon DynamoDB which streams event to AWS Lambda

Amazon API Gateway → Amazon DynamoDB Stream → AWS Lambda

API Gateway to DynamoDB to Lambda function using streams.

This pattern deploys an Amazon API Gateway API integration with Amazon DynamoDB. It deploys a Lambda function as a consumer for the DynamoDB stream.
The Lambda function logs the decoded message which was received from the DynamoDB stream.

< 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-rest-api-dynamodb-lambda-cdk

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Thi Nguyen

Thi Nguyen

Solutions Architect @ AWS

Follow on LinkedIn