Add DynamoDB to EventBridge Scheduler pattern#2951
Add DynamoDB to EventBridge Scheduler pattern#2951julianwood merged 3 commits intoaws-samples:mainfrom
Conversation
| "description": "Automatically create, update, and delete EventBridge Scheduler schedules based on DynamoDB table changes using DynamoDB Streams.", | ||
| "language": "Python", | ||
| "level": "200", | ||
| "framework": "SAM", |
| @@ -0,0 +1,111 @@ | |||
| { | |||
| "title": "Dynamic EventBridge Scheduler from DynamoDB Streams", | |||
There was a problem hiding this comment.
Dynamic Amazon EventBridge Scheduler from Amazon DynamoDB Streams
| "twitter": "" | ||
| } | ||
| ], | ||
| "patternArch": { |
There was a problem hiding this comment.
Remove this section
| }, | ||
| "authors": [ | ||
| { | ||
| "name": "Your Name", |
There was a problem hiding this comment.
Update your name
| "authors": [ | ||
| { | ||
| "name": "Your Name", | ||
| "image": "", |
There was a problem hiding this comment.
If available, please update other fields under authors.
| @@ -0,0 +1,184 @@ | |||
| # Dynamic EventBridge Scheduler from DynamoDB Streams | |||
There was a problem hiding this comment.
Dynamic Amazon EventBridge Scheduler from Amazon DynamoDB Streams
| ``` | ||
| 2. Change directory to the pattern directory: | ||
| ``` | ||
| cd dynamodb-eventbridge-scheduler |
There was a problem hiding this comment.
cd serverless-patterns/dynamodb-eventbridge-scheduler
| @@ -0,0 +1,240 @@ | |||
| AWSTemplateFormatVersion: '2010-09-09' | |||
| Transform: AWS::Serverless-2016-10-31 | |||
| Description: 'Dynamic EventBridge Scheduler creation from DynamoDB Streams' | |||
There was a problem hiding this comment.
Amazon EventBridge, Amazon DynamoDB
| ```bash | ||
| aws logs tail /aws/lambda/ScheduleStreamProcessor --follow | ||
| ``` | ||
|
|
There was a problem hiding this comment.
Also add a step for checking logs for ScheduledTaskExecutor Lambda function
|
|
||
| 2. View the schedule in EventBridge Console: | ||
| - Navigate to EventBridge → Scheduler → Schedules | ||
| - Look for `auto-test-schedule` |
There was a problem hiding this comment.
This is not getting created. I suspect the issue is the scheduled time is not a in the future.
| "linkedin": "" | ||
| } | ||
| ], | ||
| "patternArch": { |
There was a problem hiding this comment.
Please remove the patternArch section
|
Hi @luketr03 , I have approved the pattern with some minor comments. Please fix them and confirm here before the merge by a DA. |
Pattern: DynamoDB to EventBridge Scheduler
This pattern demonstrates how to dynamically create, update, and delete EventBridge Scheduler schedules based on DynamoDB table changes using DynamoDB Streams.
Services Used
Key Features
Use Case
This pattern is useful for applications that need to dynamically schedule tasks based on user actions or system events, such as:
Testing
Pattern has been tested and verified working. Includes automated test schedule creation upon deployment.