AWS Lambda to Amazon DynamoDB to Amazon Kinesis Data Streams

AWS Lambda → Amazon DynamoDB → Kinesis Data Streams

Persist an item to a DynamoDB table from a Lambda function, triggering a Kinesis Data Stream.

The SAM template deploys a Lambda function, a DynamoDB table and a Kinesis Data Stream.
This is a Java 11 implementation of this pattern.

< 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/lambda-dynamodb-kinesis-data-streams-sam-java

Deploy

sam deploy --guided --capabilities CAPABILITY_IAM


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete --stack-name STACK_NAME.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"

Created by:

Razvan Minciuna

Razvan Minciuna

Software Architect.

Follow on LinkedIn