1

I've read this question about region string. Configuring region in Node.js AWS SDK

But I tried all the possible pages in Amazon Console, and still couldn't find the region string to use for initializing service object.

Below is S3 manage console where it shows region, but I need exact region string for initializing s3 object. I can not use "US East (N. Virginia)"

enter image description here

var s3 = new AWS.S3({
  apiVersion: '2006-03-01', 
  region: 'us-east-1',  // where can I find this string???
  accessKeyId: 'AKIAJTZxxxxxxxxxxxxxxx', 
  secretAccessKey: 'xxxxxxxxxxxxxxxxxxxx'})

I am trying to find document where I can map 'US East (N. Virginia)' to 'us-east-1'. Where can I find it?

Nicolas S.Xu
  • 13,794
  • 31
  • 84
  • 129

1 Answers1

3

The AWS Regions and Endpoints has a listing of all regions.

It is currently:

  • Asia Pacific (Mumbai): ap-south-1
  • Asia Pacific (Seoul): ap-northeast-2
  • Asia Pacific (Singapore): ap-southeast-1
  • Asia Pacific (Sydney): ap-southeast-2
  • Asia Pacific (Tokyo): ap-northeast-1
  • Canada (Central): ca-central-1
  • EU (Frankfurt): eu-central-1
  • EU (Ireland): eu-west-1
  • EU (London): eu-west-2
  • South America (São Paulo): sa-east-1
  • US East (N. Virginia): us-east-1
  • US East (Ohio): us-east-2
  • US West (N. California): us-west-1
  • US West (Oregon): us-west-2
John Rotenstein
  • 241,921
  • 22
  • 380
  • 470