Created
August 11, 2022 13:14
-
-
Save said-and-done/addf97deb95b7b54785330422d7ced99 to your computer and use it in GitHub Desktop.
AWS: stop all currently running State Machine executions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws stepfunctions list-executions \ | |
--state-machine-arn arn:aws:states:...:covidAutoUpdater \ | |
--status-filter RUNNING \ | |
--query "executions[*].{executionArn:executionArn}" \ | |
--output text | \ | |
xargs -I {} aws stepfunctions stop-execution \ | |
--execution-arn {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment