Disable and enable Amazon EventBridge rules with Amazon EventBridge Scheduler

Amazon EventBridge Scheduler → Amazon EventBridge

Disable and enable an EventBridge rule on a maintenance schedule with EventBridge Scheduler.

This pattern demonstrates using EventBridge Scheduler, a serverless scheduler that enables you to schedule tasks and events at scale, to disable and re-enable an EventBridge rule at specific days and times in a week, such as a periodic maintenance window on a weekend.

< 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/eventbridge-schedule-disable-eventbridge-rule-cdk-typescript

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

cdk destroy

Created by:

Michael Gasch

Michael Gasch

Senior Product Manager Technical for Amazon EventBridge.

Follow on LinkedIn