Skip to content

Instantly share code, notes, and snippets.

@pahud
Created January 19, 2019 07:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pahud/9928252788fbca97082444c8cff34211 to your computer and use it in GitHub Desktop.
Save pahud/9928252788fbca97082444c8cff34211 to your computer and use it in GitHub Desktop.
all aws region codes
ap-south-1
eu-west-3
eu-north-1
eu-west-2
eu-west-1
ap-northeast-3
ap-northeast-2
ap-northeast-1
sa-east-1
ca-central-1
ap-southeast-1
ap-southeast-2
eu-central-1
us-east-1
us-east-2
us-west-1
us-west-2
cn-north-1
cn-northwest-1
@pahud
Copy link
Author

pahud commented Jan 19, 2019

$ for r in $(aws ec2 describe-regions --query 'Regions[*].RegionName' --output text); do echo $r; done >  aws_regions 
$ for r in $(aws --profile bjs ec2 describe-regions --query 'Regions[*].RegionName' --output text); do echo $r; done >>  aws_regions
$ cat aws_regions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment