Skip to content

Instantly share code, notes, and snippets.

@colinvh
Last active February 23, 2024 20:57
Show Gist options
  • Save colinvh/14e4b7fb6b66c29f79d3 to your computer and use it in GitHub Desktop.
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 Partition Launched AWS code A1 A2 B
US East N. Virginia aws 2006 us-east-1 usea1 use1 usva
US East Ohio aws 2016 us-east-2 usea2 use2 usoh
US West N. California aws 2011 us-west-1 uswe1 usw1 usca
US West Oregon aws 2009 us-west-2 uswe2 usw2 usor
GovCloud US Northwest aws-us-gov 2011 us-gov-west-1 ugwe2 usgw2 usgov
Canada Montreal aws 2016 ca-central-1 cace1 cac1 caqc
EU Ireland aws 2007 eu-west-1 euwe1 ew1 ied
EU London aws 2016 eu-west-2 euwe2 ew2 gblnd
EU Frankfurt aws 2014 eu-central-1 euce1 ec1 dehe
Asia Pacific Singapore aws 2010 ap-southeast-1 apse1 apse1 sg
Asia Pacific Sydney aws 2012 ap-southeast-2 apse2 apse2 aunsw
Asia Pacific Mumbai aws 2016 ap-south-1 apso1 aps1 inmh
Asia Pacific Tokyo aws 2011 ap-northeast-1 apne1 apne1 jp13
Asia Pacific Seoul aws 2016 ap-northeast-2 apne2 apne2 kr11
South America Saõ Paulo aws 2011 sa-east-1 saea1 sae1 brsp
China Beijing aws-cn 2013 cn-north-1 cnno1 cn1 cn11
Code Description
A1 Abbreviated AWS code (equal length)
A2 Abbreviated AWS code
B Concatenated ISO 3166 code

Domain names for regional services

AWS code Domain 1 Domain 2
us-east-1 example-va.us example.us
us-west-1 example-ca.us example-west.us
us-west-2 example-or.us example-nw.us
eu-west-1 example-d.ie example.ie
eu-west-2 example-lnd.net.uk example.net.uk
eu-central-1 example-he.de example.de
ap-southeast-1 example.sg example.sg
ap-southeast-2 example-nsw.net.au example.net.au
ap-northeast-1 example-13.jp example.jp
ap-northeast-2 example.seoul.kr example.ne.kr
sa-east-1 example-sp.net.br example.net.br
cn-north-1 example.bj.cn example.cn

Capital-delimited codes for variable-width fonts

AWS code A1 A2 B
us-east-1 USea1 USe1 USva
us-west-1 USwe1 USw1 USca
us-west-2 USwe2 USw2 USor
us-gov-west-1 gUSwe1 gUSw1 gUSnw
eu-west-1 EUwe1 Ew1 IEd
eu-west-2 EUwe2 Ew2 GBlnd
eu-central-1 EUce1 Ec1 DEhe
ap-southeast-1 APse1 APse1 SG
ap-southeast-2 APse2 APse2 AUnsw
ap-northeast-1 APne1 APne1 JP13
ap-northeast-2 APne2 APne2 KR11
sa-east-1 SAea1 SAe1 BRsp
cn-north-1 CNno1 Cn1 CN11

Bold-delimited codes for rich text

AWS code A1 A2 A2c B
us-east-1 usea1 use1 USE1 usva
us-west-1 uswe1 usw1 USW1 usca
us-west-2 uswe2 usw2 USW2 usor
us-gov-west-1 govuswe1 govusw1 USgW1 govusnw
eu-west-1 euwe1 ew1 EW1 ied
eu-west-2 euwe2 ew2 EW2 gblnd
eu-central-1 euce1 ec1 EC1 dehe
ap-southeast-1 apse1 apse1 APSE1 sg
ap-southeast-2 apse2 apse2 APSE2 aunsw
ap-northeast-1 apne1 apne1 APNE1 jp13
ap-northeast-2 apne2 apne2 APNE2 kr11
sa-east-1 saea1 sae1 SAE1 brsp
cn-north-1 cnno1 cn1 CN1 cn11
@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