AWS - cannot access S3 bucket via HTTPS endpoint due to location constraint

一个人想着一个人 提交于 2019-12-24 10:49:06

问题


The following services are activated:

  1. a S3 bucket in ap-east-1 where my static web pages are saved,
  2. a domain name registered on Route 53,
  3. a SSL certificate requested via Certification Manager at us-east-1,
  4. a CloudFront distribution for enabling HTTPS access to my web pages.

It is stated in this page that a single SSL certificate should suffice if CloudFront is used.

When I navigate to my URL https://www.example.com in Chrome, the following error is returned.

How to make my pages globally accessible via HTTPS?


Update

It seems that the behavior of S3 buckets in ap-east-1 is different from the buckets located in other regions as stated in my follow up question.


回答1:


It is saying that the URL provided for S3 included the wrong (or no) region.

You should use the format:

bucket-name.s3.region.amazonaws.com

You are probably missing the region.

See: Using Amazon S3 Origins, MediaPackage Channels, and Custom Origins for Web Distributions - Amazon CloudFront



来源:https://stackoverflow.com/questions/56921260/aws-cannot-access-s3-bucket-via-https-endpoint-due-to-location-constraint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!