Amazon DynamoDB to Amazon Kinesis

Amazon DynamoDB → Kinesis

Deploy a DynamoDB table that uses a Kinesis stream

The CDK stack deploys a DynamoDB table and a Kinesis Data Stream.
When new items are added to the DynamoDB table, the item-level changes in the table will be streamed to the Kinesis Data 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/dynamodb-kinesis-cdk

Deploy

npm installcdk deploy


Testing

After deployment, add an item to the DynamoDB table. Go to the CloudWatch Metrics for the deployed Kinesis Data Stream. You will see incoming record metrics for the item data.

Cleanup

1. Delete the stack: npx cdk destroy.
2. Confirm the stack has been deleted: aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus".
3. You see a message confirming DELETE_COMPLETE.

Created by:

Milena Godau

Milena Godau

Milena is a Front End Developer at AWS based in São Paulo.