Skip to content

Instantly share code, notes, and snippets.

@guyc
Created November 22, 2019 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guyc/003b60695d0146eaa686aed220c7d314 to your computer and use it in GitHub Desktop.
Save guyc/003b60695d0146eaa686aed220c7d314 to your computer and use it in GitHub Desktop.
enable stack termination protection on all aws stacks
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