$ for region in `aws ec2 describe-regions --query 'Regions[*].RegionName' --output text`; do aws ec2 describe-availability-zones --query 'AvailabilityZones[*].ZoneName' --region ${region}; done
[
"ap-south-1a",
"ap-south-1b"
]
[
"eu-west-2a",
"eu-west-2b"
]
[
"eu-west-1a",
"eu-west-1b",
"eu-west-1c"
]
[
"ap-northeast-2a",
"ap-northeast-2c"
]
[
"ap-northeast-1a",
"ap-northeast-1c"
]
[
"sa-east-1a",
"sa-east-1b",
"sa-east-1c"
]
[
"ca-central-1a",
"ca-central-1b"
]
[
"ap-southeast-1a",
"ap-southeast-1b"
]
[
"ap-southeast-2a",
"ap-southeast-2b",
"ap-southeast-2c"
]
[
"eu-central-1a",
"eu-central-1b"
]
[
"us-east-1a",
"us-east-1b",
"us-east-1c",
"us-east-1d",
"us-east-1e"
]
[
"us-east-2a",
"us-east-2b",
"us-east-2c"
]
[
"us-west-1a",
"us-west-1b"
]
[
"us-west-2a",
"us-west-2b",
"us-west-2c"
]
Created
April 8, 2017 14:31
-
-
Save tomelliff/e477cf6fb0a217773114bf7b51a39e1f to your computer and use it in GitHub Desktop.
List of AWS availability zones for each AWS region
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist is on the first page of Google for "AWS availability zones per region" but is outdated. This shows how to fetch the zones per region dynamically. At some point I might think about how I can optionally output it into a Markdown table like the other gist too.