Created
January 9, 2017 19:17
-
-
Save soulshake/73b835828e7e22853d8bde029c2a855a to your computer and use it in GitHub Desktop.
List cloudformation stacks in all Convox-supported AWS regions.
This file contains 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 | |
REGIONS=" | |
ap-northeast-1 | |
ap-southeast-1 | |
ap-southeast-2 | |
eu-central-1 | |
eu-west-1 | |
us-east-1 | |
us-east-2 | |
us-west-2 | |
" | |
for r in $REGIONS; do | |
echo "** Region: $r **" | |
aws cloudformation describe-stacks --region "$r" --query "Stacks[*].StackId" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment