Skip to content

Instantly share code, notes, and snippets.

@said-and-done
Created August 11, 2022 13:14
Show Gist options
  • Save said-and-done/addf97deb95b7b54785330422d7ced99 to your computer and use it in GitHub Desktop.
Save said-and-done/addf97deb95b7b54785330422d7ced99 to your computer and use it in GitHub Desktop.
AWS: stop all currently running State Machine executions
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