Manage EventBridge Schedules using Step Functions (Part 2)- with Wait State

Last week I composed an article with a sample project on how to manage one time schedules created by Amazon EventBridge Scheduler using StepFunctions. There I use StepFunctions callback pattern to wait for the schedule to run and then delete the schedule. In this post I will explain another way to create the schedule and delete it after the given time without the callback pattern, but using a wait state in the execution.

Manage EventBridge Schedules using Step Functions

AWS Step functions recently announced SDK support for another 35 services. Announcement: This includes the support for EventBridge Scheduler as well. One time schedule is one of the great features supported by EventBridge Scheduler. As the name implies, it allows you to schedule a task just to run once at a given time. As at now ( February 2023) EventBridge Scheduler doesn’t have native functionality to know if the target task is successful or not.