I have several cloudformation templates with custom resources based on several AWS Step Functions state machines.
Sometimes, during development tasks, they are falling into an infinite loop when I was trying to delete the cloudformation stacks, so the delete operation is stuck into DELETE_IN_PROGRESS.
Although I can abort execution of the state machines, cloudformation remains stuck for one hour until the DELETE operation fails.
I cannot find nothing that can help in the official documentation about how cloudformation handles this use case, it seems that the only way to go is wait for an hour until cloudformation states at DELETE_FAILED.
Anybody knows anyway to avoid waiting when a state machine execution is aborted?