Last active
August 29, 2018 19:12
-
-
Save whyvez/1bce75f1d08e4a446a593f9c2e4647ba to your computer and use it in GitHub Desktop.
Deletes all AWS CloudFormation stacks - USE WITH CAUTION!
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
#!/bin/bash | |
aws cloudformation list-stacks | jq -r '.[][].StackName' | while read -r stack_name; do | |
aws cloudformation delete-stack --stack-name "${stack_name}" | |
echo "deleted stack ${stack_name}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment