Skip to content

Instantly share code, notes, and snippets.

@pataiji
Created August 11, 2014 00:58
Show Gist options
  • Save pataiji/eaa386270a506f4d4995 to your computer and use it in GitHub Desktop.
Save pataiji/eaa386270a506f4d4995 to your computer and use it in GitHub Desktop.
EC2のリージョン一覧を取得する
#!/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