parent
da45cdeef5
commit
4188d098fc
@ -1,8 +1,8 @@ |
|||||||
1,us-east-1,virginia-key-benchmark,virginia-security-group,virginia |
1,us-east-1,virginia-key-benchmark,virginia-security-group,virginia,ami-b70554c8 |
||||||
2,us-east-2,ohio-key-benchmark,ohio-security-group,ohio |
2,us-east-2,ohio-key-benchmark,ohio-security-group,ohio,ami-8c122be9 |
||||||
3,us-west-1,california-key-benchmark,california-security-group,california |
3,us-west-1,california-key-benchmark,california-security-group,california,ami-e0ba5c83 |
||||||
4,us-west-2,oregon-key-benchmark,oregon-security-group,oregon |
4,us-west-2,oregon-key-benchmark,oregon-security-group,oregon,ami-a9d09ed1 |
||||||
5,ap-northeast-1,tokyo-key-benchmark,tokyo-security-group,tokyo |
5,ap-northeast-1,tokyo-key-benchmark,tokyo-security-group,tokyo,ami-e99f4896 |
||||||
6,ap-southeast-1,singapore-key-benchmark,singapore-security-group,singapore |
6,ap-southeast-1,singapore-key-benchmark,singapore-security-group,singapore,ami-05868579 |
||||||
7,eu-central-1,frankfurt-key-benchmark,frankfurt-security-group,frankfurt |
7,eu-central-1,frankfurt-key-benchmark,frankfurt-security-group,frankfurt,ami-7c4f7097 |
||||||
8,eu-west-1,ireland-key-benchmark,ireland-security-group,ireland |
8,eu-west-1,ireland-key-benchmark,ireland-security-group,ireland,ami-466768ac |
@ -0,0 +1,13 @@ |
|||||||
|
echo "Getting list of Availability Zones" |
||||||
|
all_regions=$(aws ec2 describe-regions --output text --query 'Regions[*].[RegionName]' | sort) |
||||||
|
all_az=() |
||||||
|
|
||||||
|
echo $all_regions |
||||||
|
while read -r region; do |
||||||
|
az_per_region=$(aws ec2 describe-availability-zones --region $region --query 'AvailabilityZones[*].[ZoneName]' --output text | sort) |
||||||
|
echo $region $az_per_region |
||||||
|
while read -r az; do |
||||||
|
all_az+=($az) |
||||||
|
done <<< "$az_per_region" |
||||||
|
done <<< "$all_regions" |
||||||
|
echo $all_az |
Loading…
Reference in new issue