- aws-sdk
- terminal-table
Install: gem install aws-sdk terminal-table
Run ruby awsazs-update.rb
to generate the JSON file.
Run ruby awsazs.rb
to see the output:
+----------------+-------------+------------------------------------------------------------------------+
| Code | Region Name | AZs |
+----------------+-------------+------------------------------------------------------------------------+
| ap-northeast-1 | Tokyo | ap-northeast-1a, ap-northeast-1c |
| ap-northeast-2 | Seoul | ap-northeast-2a, ap-northeast-2c |
| ap-south-1 | Mumbai | ap-south-1a, ap-south-1b |
| ap-southeast-1 | Singapore | ap-southeast-1a, ap-southeast-1b |
| ap-southeast-2 | Sydney | ap-southeast-2a, ap-southeast-2b, ap-southeast-2c |
+----------------+-------------+------------------------------------------------------------------------+
| ca-central-1 | Canada | ca-central-1a, ca-central-1b |
+----------------+-------------+------------------------------------------------------------------------+
| eu-central-1 | Frankfurt | eu-central-1a, eu-central-1b, eu-central-1c |
| eu-west-1 | Ireland | eu-west-1a, eu-west-1b, eu-west-1c |
| eu-west-2 | London | eu-west-2a, eu-west-2b |
+----------------+-------------+------------------------------------------------------------------------+
| sa-east-1 | Saopaulo | sa-east-1a, sa-east-1b, sa-east-1c |
+----------------+-------------+------------------------------------------------------------------------+
| us-east-1 | Virginia | us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e, us-east-1f |
| us-east-2 | Ohio | us-east-2a, us-east-2b, us-east-2c |
| us-west-1 | California | us-west-1b, us-west-1c |
| us-west-2 | Oregon | us-west-2a, us-west-2b, us-west-2c |
+----------------+-------------+------------------------------------------------------------------------+