Skip to content

Instantly share code, notes, and snippets.

@matsubo
Created August 26, 2019 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsubo/9308b3a91e75d1ce62fe6f0d047a3c7d to your computer and use it in GitHub Desktop.
Save matsubo/9308b3a91e75d1ce62fe6f0d047a3c7d to your computer and use it in GitHub Desktop.
Find zone id(apne1-az1) from AWS zone name(ap-northeast-1c).
% aws ec2 describe-availability-zones
{
"AvailabilityZones": [
{
"State": "available",
"Messages": [],
"RegionName": "ap-northeast-1",
"ZoneName": "ap-northeast-1a",
"ZoneId": "apne1-az4"
},
{
"State": "available",
"Messages": [],
"RegionName": "ap-northeast-1",
"ZoneName": "ap-northeast-1c",
"ZoneId": "apne1-az1"
},
{
"State": "available",
"Messages": [],
"RegionName": "ap-northeast-1",
"ZoneName": "ap-northeast-1d",
"ZoneId": "apne1-az2"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment