EventBridge Rules to EventBridge Scheduler Migration

A workflow to automate the migration of EventBridge Rules to EventBridge Scheduler

EventBridge released Scheduler in November 2022, a new feature that expands on the functionality of scheduled rules and is decoupled from the event bus.
New capabilities were launched on Scheduler such as Time Zone support, one-time schedules, higher scale supporting millions of schedules, time windows, and the ability to invoke over 200 services and over 6000 APIs with Scheduler.
For scheduled rules users on the event bus who wish to leverage these new features, we've designed a migration workflow to easily move your scheduled rules from the bus to a schedule in EventBridge Scheduler.
This workflow orchestrates AWS Lambda functions to process Amazon EventBridge rules with ScheduleExpression, generating corresponding schedules via the AWS SDK CreateSchedule service.
It can enable, disable, or maintain rule states based on input, including toggling the new schedule.
Designed for scalability, it manages up to 260,000 scheduled rules with a concurrency limit of 50, handling pagination efficiently with NextToken.
Refer to the GitHub repository for payload details.

< Back to all workflows

GitHub icon View this workflow on GitHub


Clone repo

git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/eventbridge-rules-to-schedules/cd step-functions-workflows-collection/eventbridge-rules-to-schedules

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete.

Created by:

Jigar Gajjar

Jigar Gajjar

Cloud Engineer at Amazon Web Services (AWS) specializing in serverless solutions, with a strong expertise in Python. I am recognized as an API Gateway SME and have a knack for architecting serverless cloud solutions.

Follow on LinkedIn

Sindhu Siddalingamurthy

Cloud Engineer at Amazon Web Services (AWS)

Follow on LinkedIn