Last active
July 7, 2022 21:00
-
-
Save weyderfs/bee836a63c2e0d256fda7eb2ee0ee314 to your computer and use it in GitHub Desktop.
Delete AWS Cloudformation 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
#!/bin/bash | |
for i in $(aws cloudformation list-stacks |jq -r '.StackSummaries[] | {StackName} | join(" ")') | |
do echo aws cloudformation delete-stack --stack-name $i #remove echo to delete | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment