AWS: The bucket you are attempting to access must be addressed using the specified endpoint..

While trying to open an S3 bucket, I stumbled upon the error above. The reason seems to be that my app.config had the wrong AWSRegion set (eu-west-1).

I found the following information on the AWS site:

Region Name Region Endpoint Location Constraint Protocol

Signature Version(s)

Support

US East (N. Virginia) us-east-1 Valid endpoint names for this region:

  • s3.amazonaws.com
  • s3-external-1.amazonaws.com
  • s3.dualstack.us-east-1.amazonaws.com**
(none required) HTTP and HTTPS Versions 2 and 4
US East (Ohio) us-east-2 Valid endpoint names for this region:

  • s3.us-east-2.amazonaws.com
  • s3-us-east-2.amazonaws.com
  • s3.dualstack.us-east-2.amazonaws.com
us-east-2 HTTP and HTTPS Versions 4 only
US West (N. California) us-west-1 Valid endpoint names for this region:

  • s3-us-west-1.amazonaws.com
  • s3.dualstack.us-west-1.amazonaws.com**
us-west-1 HTTP and HTTPS Versions 2 and 4
US West (Oregon) us-west-2 Valid endpoint names for this region:

  • s3-us-west-2.amazonaws.com
  • s3.dualstack.us-west-2.amazonaws.com**
us-west-2 HTTP and HTTPS Versions 2 and 4
Canada (Central) ca-central-1 Valid endpoint names for this region:

  • s3.ca-central-1.amazonaws.com

  • s3-ca-central-1.amazonaws.com

  • s3.dualstack.ca-central-1.amazonaws.com**

ca-central-1 HTTP and HTTPS Version 4 only
Asia Pacific (Mumbai) ap-south-1 Valid endpoint names for this region:

  • s3.ap-south-1.amazonaws.com

  • s3-ap-south-1.amazonaws.com

  • s3.dualstack.ap-south-1.amazonaws.com**

ap-south-1 HTTP and HTTPS Version 4 only
Asia Pacific (Seoul) ap-northeast-2 Valid endpoint names for this region:

  • s3.ap-northeast-2.amazonaws.com
  • s3-ap-northeast-2.amazonaws.com
  • s3.dualstack.ap-northeast-2.amazonaws.com**

ap-northeast-2 HTTP and HTTPS Version 4 only
Asia Pacific (Singapore) ap-southeast-1 Valid endpoint names for this region

  • s3-ap-southeast-1.amazonaws.com
  • s3.dualstack.ap-southeast-1.amazonaws.com**

ap-southeast-1 HTTP and HTTPS Versions 2 and 4
Asia Pacific (Sydney) ap-southeast-2 Valid endpoint names for this region:

  • s3-ap-southeast-2.amazonaws.com
  • s3.dualstack.ap-southeast-2.amazonaws.com**
ap-southeast-2 HTTP and HTTPS Versions 2 and 4
Asia Pacific (Tokyo) ap-northeast-1 Valid endpoint names for this region:

  • s3-ap-northeast-1.amazonaws.com
  • s3.dualstack.ap-northeast-1.amazonaws.com**
ap-northeast-1 HTTP and HTTPS Versions 2 and 4
EU (Frankfurt) eu-central-1 Valid endpoint names for this region:

  • s3.eu-central-1.amazonaws.com
  • s3-eu-central-1.amazonaws.com
  • s3.dualstack.eu-central-1.amazonaws.com**
eu-central-1 HTTP and HTTPS Version 4 only
EU (Ireland) eu-west-1 Valid endpoint names for this region:

  • s3-eu-west-1.amazonaws.com
  • s3.dualstack.eu-west-1.amazonaws.com**
EU or eu-west-1 HTTP and HTTPS Versions 2 and 4
EU (London) eu-west-2 Valid endpoint names for this region:

  • s3.eu-west-2.amazonaws.com
  • s3-eu-west-2.amazonaws.com
  • s3.dualstack.eu-west-2.amazonaws.com**
eu-west-2 HTTP and HTTPS Version 4 only
South America (São Paulo) sa-east-1 Valid endpoint names for this region:

  • s3-sa-east-1.amazonaws.com
  • s3.dualstack.sa-east-1.amazonaws.com**
sa-east-1 HTTP and HTTPS Versions 2 and 4
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s