Skip to content

Instantly share code, notes, and snippets.

@soulshake
Created January 9, 2017 19:17
Show Gist options
  • Save soulshake/73b835828e7e22853d8bde029c2a855a to your computer and use it in GitHub Desktop.
Save soulshake/73b835828e7e22853d8bde029c2a855a to your computer and use it in GitHub Desktop.
List cloudformation stacks in all Convox-supported AWS regions.
#!/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