Amazon DynamoDB streams with Amazon API Gateway and AWS Lambda

Amazon API Gateway → AWS Lambda → Amazon DynamoDB → Amazon Kinesis

Saves items to DynamoDB through API Gateway. DynamoDB streams are then used to listen to new items and trigger downstream Lambda function

This sample project demonstrates how to use Amazon API Gateway, AWS Lambda, Amazon DynamoDB and Kinesis together. When an HTTP POST request is made to the Amazon API Gateway endpoint, the AWS Lambda function is invoked and inserts an item into the Amazon DynamoDB table, then an event will be pushed into Kinesis and trigger a Lambda function.

< 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-lambda-dynamodb-stream-lambda

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete

Created by:

Vijay Konade

Vijay Konade

Cloud Support Eng @ AWS

Follow on LinkedIn

Thi Nguyen

Thi Nguyen

Solutions Architect @ AWS

Follow on LinkedIn