Dynamic Amazon EventBridge Scheduler from Amazon DynamoDB Streams

Amazon DynamoDB → AWS Lambda → EventBridge → AWS Lambda

Automatically create, update, and delete EventBridge Scheduler schedules based on DynamoDB table changes using DynamoDB Streams.

This pattern demonstrates how to dynamically manage EventBridge Scheduler schedules by storing schedule configurations in a DynamoDB table.
When items are inserted, updated, or deleted from the DynamoDB table, a Lambda function is automatically triggered via DynamoDB Streams.
The Lambda function then creates, updates, or deletes the corresponding EventBridge Scheduler schedule.
When the scheduled time arrives, EventBridge Scheduler invokes the target Lambda function with the configured payload.
This pattern includes an auto-test feature that creates a sample schedule 2 minutes after deployment to verify the solution works end-to-end.

< 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-eventbridge-scheduler

Deploy

sam buildsam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Luigi Napoleone Capasso

Luigi Napoleone Capasso is a Technical Account Manager at Amazon Web Services.

Follow on LinkedIn