Ubuntu – How to get a list of Amazon regions via the command line

awscloud

I'd like to see how I can get a list of regions from AWS on the command line so I can quickly look things up, how can I do this?

Best Answer

You can do this by running the command ec2-describe-regions from the command line (if you have ec2-api-tools installed available in multiverse).

$ ec2-describe-regions
REGION  eu-west-1   ec2.eu-west-1.amazonaws.com
REGION  sa-east-1   ec2.sa-east-1.amazonaws.com
REGION  us-east-1   ec2.us-east-1.amazonaws.com
REGION  ap-northeast-1  ec2.ap-northeast-1.amazonaws.com
REGION  us-west-2   ec2.us-west-2.amazonaws.com
REGION  us-west-1   ec2.us-west-1.amazonaws.com
REGION  ap-southeast-1  ec2.ap-southeast-1.amazonaws.com
Related Question