![](/img/trans.png)
[英]AWS S3 static website: Error 400: The specified bucket exists in another region
[英]Amazon S3 Error: The specified bucket exists in another region
我只是设置一个简单的启动页面基本静态HTML,我决定把它放在S3上。
我的桶名称与我的域名相同
www.example.com.s3-website.eu-west-2.amazonaws.com/
然后我有一个CNAME设置为相同的东西。
唯一的问题是我从Amazon S3收到400错误
400 Bad Request
Code: IncorrectEndpoint
Message: The specified bucket exists in another region. Please direct
requests to the specified endpoint.
我已经检查了,我的桶肯定是欧盟西部,这是它在服务静态网站时给我的端点。
您可以通过以下命令检查存储桶位置。
aws s3api get-bucket-location --bucket {bucketname}
可能是你的水桶位于eu-west-1而不是eu-west-2?
我没有设法解决错误的区域问题,但是,我创建了一个cloudfront distrubution,并为此设置了一个CNAME。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.