Created
November 22, 2019 04:39
-
-
Save guyc/003b60695d0146eaa686aed220c7d314 to your computer and use it in GitHub Desktop.
enable stack termination protection on all aws stacks
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
export AWS_PROFILE=xxxx | |
aws cloudformation list-stacks --stack-status-filter UPDATE_COMPLETE --query StackSummaries[*].StackName --output text | xargs -n 1 aws cloudformation update-termination-protection --enable-termination-protection --stack-name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment