Skip to content

Instantly share code, notes, and snippets.

@colinvh
Last active November 5, 2025 05:48
Show Gist options
  • Select an option

  • Save colinvh/14e4b7fb6b66c29f79d3 to your computer and use it in GitHub Desktop.

Select an option

Save colinvh/14e4b7fb6b66c29f79d3 to your computer and use it in GitHub Desktop.
AWS Region Names

Alternative naming schemes for AWS regions

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Schemes

Region Location Launched AWS Code A1 A2 B1 B2
US East N. Virginia 2006 us-east-1 usea1 USe1 usva USva
US West N. California 2011 us-west-1 uswe1 USw1 usca USca
US West Oregon 2009 us-west-2 uswe2 USw2 usor USor
EU Ireland 2007 eu-west-1 euwe1 EUw1 ied IEd
EU Frankfurt 2014 eu-central-1 euce1 EUc1 dehe DEhe
Asia Pacific Singapore 2010 ap-southeast-1 apse1 APse1 sg SG
Asia Pacific Sydney 2012 ap-southeast-2 apse2 APse2 aunsw AUnsw
Asia Pacific Tokyo 2011 ap-northeast-1 apne1 APne1 jp13 JP13
South America Saõ Paulo 2011 sa-east-1 saea1 SAe1 brsp BRsp
China Beijing 2013 cn-north-1 cnno1 CNn1 cn11 CN11
Code Description
A1 Abbreviated AWS Code (eual length)
A2 Abbreviated AWS Code (caps-delimited)
B1 Concatenated ISO 3166 code
B2 Concatenated ISO 3166 code (caps-delimited)
@adv4000
Copy link

adv4000 commented Jun 28, 2018

Add second China Region:

Region : China
Location: Ningxia
AWS Code: cn-northwest-1 
Launched: 2017

@YakDriver
Copy link

If you need instance types by region: https://github.com/YakDriver/aws-ec2-instance-types

@0xknon
Copy link

0xknon commented Jan 1, 2021

May I ask why A2 of ca-central-1 is cac1 but eu-west-1 is ew1? I thought it would be euw1.

@lorayin
Copy link

lorayin commented Jan 27, 2021

AWS name is euw1, not ew1. FYI.
Europe (Ireland) | eu-west-1 | euw1-az1, euw1-az2, euw1-az3
https://docs.aws.amazon.com/workspaces/latest/adminguide/azs-workspaces.html

@rackerbenoit
Copy link

rackerbenoit commented Jan 27, 2021

"A" is equivalent to A2 in the chart above. I fixed the codes as noted in the comments. I also added new regions for 2018, 2019, 2020.

Region Location Partition Launched AWS code A
US East N. Virginia aws 2006 us-east-1 use1
US East Ohio aws 2016 us-east-2 use2
US West N. California aws 2011 us-west-1 usw1
US West Oregon aws 2009 us-west-2 usw2
GovCloud US Northwest aws-us-gov 2011 us-gov-west-1 usgw1
GovCloud US East. aws-us-gov 2019 us-gov-east-1 usge1
Canada Montreal aws 2016 ca-central-1 cac1
EU Ireland aws 2007 eu-west-1 euw1
EU London aws 2016 eu-west-2 euw2
EU Paris aws 2014 eu-west-3 euw3
EU Frankfurt aws 2014 eu-central-1 euc1
EU Milan aws 2020 eu-south-1 eus1
EU Stockholm aws 2018 eu-north-1 eun1
Asia Pacific Singapore aws 2010 ap-southeast-1 apse1
Asia Pacific Sydney aws 2012 ap-southeast-2 apse2
Asia Pacific Mumbai aws 2016 ap-south-1 aps1
Asia Pacific Tokyo aws 2011 ap-northeast-1 apne1
Asia Pacific Seoul aws 2016 ap-northeast-2 apne2
Asia Pacific Hong Kong aws 2019 ap-east-1 ape1
South America Saõ Paulo aws 2011 sa-east-1 sae1
Africa Cape Town aws 2020 af-south-1 afs1
China Beijing aws-cn 2013 cn-north-1 cnn1

@vainkop
Copy link

vainkop commented Feb 16, 2021

Imo ase looks better than apse. There's no Asia without Pacific right?

@Nuru
Copy link

Nuru commented Sep 26, 2022

See also https://github.com/cloudposse/terraform-aws-utils/blob/master/main.tf for implementation of abbreviations via Terraform.

@lionello
Copy link

lionello commented Nov 22, 2022

amazon uses cnn1 for cn-north-1, not cn1, see https://docs.aws.amazon.com/AmazonECS/latest/userguide/AWS_Fargate-Regions.html (and euc1, etc. not ec1, as mentioned by @rackerbenoit )

@adv4000
Copy link

adv4000 commented Nov 22, 2022

amazon uses cnn1 for cn-north-1, not cn1, see https://docs.aws.amazon.com/AmazonECS/latest/userguide/AWS_Fargate-Regions.html (and euc1, etc. not ec1, as mentioned by @rackerbenoit )

You wrong, use Region code, not Zone code https://awsregion.info/

@lionello
Copy link

@adv4000 I was just referring to that page that I linked to (on amazon.com, not 3rd party) where you can see that AWS uses cnn1 as an abbreviation for cn-north-1. Not sure why you think that's wrong? I understand the difference between region codes and Zone codes, but wouldn't it make sense to use a single abbreviation for both, eg. cnn1 for the region and cnn1-az1 for the zone?

@cfinch
Copy link

cfinch commented Oct 27, 2023

In cost (CUR reports, Amazon uses an alternative set of abbreviations for regions: https://docs.aws.amazon.com/AmazonS3/latest/userguide/aws-usage-report-understand.html
Would it be useful to add a column with Amazon's abbreviations to this table?

@rackerbenoit
Copy link

amazon uses cnn1 for cn-north-1, not cn1, see https://docs.aws.amazon.com/AmazonECS/latest/userguide/AWS_Fargate-Regions.html (and euc1, etc. not ec1, as mentioned by @rackerbenoit )

Edited

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