Amazon DynamoDB Stream to AWS Step Functions Trigger

Amazon DynamoDB → AWS Lambda → AWS Step Functions

Trigger AWS Step Functions workflows in response to changes in DynamoDB tables using a CDK construct that connects DynamoDB and Step Functions.

This pattern demonstrates how to automatically trigger AWS Step Functions workflows in response to changes in DynamoDB tables.
The CDK construct 'DynamoWorkflowTrigger' connects DynamoDB and Step Functions by allowing you to define event handlers that monitor specific changes in your DynamoDB tables.
It leverages Lambda functions to evaluate conditions and start Step Functions state machines with inputs derived from the DynamoDB events.
The pattern includes features like dead letter queues, VPC support, custom security groups, and fine-grained event filtering.

< 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/ddbstream-lambda-sfn-cdk-ts

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy

Created by:

Avnish Kumar

Avnish Kumar

Senior Software Engineer, Amazon Web Services

Follow on LinkedIn

Saptarshi Banerjee

Saptarshi Banerjee

Senior Solutions Architect, Amazon Web Services

Follow on LinkedIn