Skip to content

Instantly share code, notes, and snippets.

View guyc's full-sized avatar

Guy Carpenter guyc

  • Clearwater Software
  • Australia
View GitHub Profile
@guyc
guyc / enable_stack_termination_protection.sh
Created November 22, 2019 04:39
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