Currently, a wait state in AWS can wait only for a defined set period of time.
let's say my step function checks with API for status if the status is updated it will move ahead or else it will wait again for a set period of time!
I would like to make this waiting period dynamic
i.e. (the backoff rate is set to 2)
1st retry: wait for 3600s
2nd retry: wait for 7200s (3600x2)
3rd retry: wait for 14400s (7200x2)
and so on.
Is there any way I can do this without using any other external computation resource (such as lambda)
Just raise a custom exception (for example:
StatusNotUpdated
) in your function if the status is not updated, and then you can define the step like this:Check here for more info