Created
August 11, 2014 00:58
-
-
Save pataiji/eaa386270a506f4d4995 to your computer and use it in GitHub Desktop.
EC2のリージョン一覧を取得する
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=( \ | |
"us-east-1" \ | |
"us-west-1" \ | |
"us-west-2" \ | |
"eu-west-1" \ | |
"sa-east-1" \ | |
"ap-southeast-1" \ | |
"ap-southeast-2" \ | |
"ap-northeast-1" | |
) | |
for (( I = 0; I < ${#REGIONS[@]}; ++I )) | |
do | |
aws ec2 describe-availability-zones --region ${REGIONS[$I]} --output text | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment