SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software
Development resources, articles, tutorials, code samples, tools and downloads for AWS Amazon Web Services, Redshift, AWS Lambda Functions, S3 Buckets, VPC, EC2, IAM

AWS Region Names and Codes for Programmatic Access

Amazon Web Services AWS users and developers are familiar with Regions in AWS global infrastructure. For example, Frankfurt region is one of the many available AWS regions. But if you connect to AWS services programmatically using AWS SDK or via CLI Command Line Interface, you need more than the region name. That is the region code which is one of the components of the AWS service endpoint, part of the service URL address.

When AWS developers sign in to AWS Console using the root account or IAM user, they can see the list of all available regions on the top-right corner of the sceen.
Of course, here the region names are listed in the language of sign-in user for readability.

AWS Regions listed on the Console screen

As I mentioned, if the Amazon Web Services developer doesn't use the GUI (Graphical User Interface) of the AWS Console, he or she will require to use the AWS Region Code either in the AWS SDK codes or in the Command Line Interface CLI tool.
So what is the region names and corresponding region codes mapping?
Here are the AWS Region name and codes in alphabetical order:

Region NameRegion Code
BahrainMiddle East (Bahrain)me-south-1
BeijingChina (Beijing)cn-north-1
CanadaCanada (Central)ca-central-1
FrankfurtEU (Frankfurt)eu-central-1
Hong KongAsia Pacific (Hong Kong)ap-east-1
IrelandEU (Ireland)eu-west-1
LondonEU (London)eu-west-2
MumbaiAsia Pacific (Mumbai)ap-south-1
NingxiaChina (Ningxia)cn-northwest-1
N. CaliforniaUS West (N. California)us-west-1
N. VirginiaUS East (N. Virginia)us-east-1
OhioUS East (Ohio)us-east-2
OregonUS West (Oregon)us-west-2
OsakaAsia Pacific (Osaka-Local)ap-northeast-3
ParisEU (Paris)eu-west-3
São PauloSouth America (São Paulo)sa-east-1
SeoulAsia Pacific (Seoul)ap-northeast-2
SingaporeAsia Pacific (Singapore)ap-southeast-1
StockholmEU (Stockholm)eu-north-1
SydneyAsia Pacific (Sydney)ap-southeast-2
TokyoAsia Pacific (Tokyo)ap-northeast-1
US-EastAWS GovCloud (US-East)us-gov-east-1
US-WestAWS GovCloud (US-West)us-gov-west-1

As I mentioned for a successfull programmatic access to Amazon Web Services, AWS developer should correctly provide the region code in his or her AWS developments. Following image is showing most recent (updated) AWS regions on a World map to understand the coverage of Amazon AWS services.

most recent locations list of AWS Regions shown on the World map

And below image is showing edge locations which are used to minimize content delivery latency on World map including a previous list of AWS regions

AWS Regions and Edge locations shown on the World map

For Amazon reference document on the list of regions and endpoints, please refer to official website AWS Documentation


Copyright © 2004 - 2021 Eralper YILMAZ. All rights reserved.