
Implement a callback pattern within your workflow
git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/emit-and-wait/cd step-functions-workflows-collection/emit-and-wait/
sam deploy --guided
sam delete --stack-name STACK_NAME.aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"