Last active
August 9, 2021 08:55
-
-
Save bboure/7107bc1d12a1fb3b902f6432ecbe4308 to your computer and use it in GitHub Desktop.
Stop Step Functions by batch
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 [sf-arn] \ | |
--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