AWS CloudFront 在欧盟与美国的 S3 表现不同(错误?)

AWS CloudFront behaving different (wrong?) with S3 in EU vs in US

我遵循了一个非常非常简单的手册来创建 S3 存储桶并将 CloudFront 放在它前面。 请参阅此处 [1]。如果我在 us-east-1 中创建 S3 存储桶,一切都按预期工作:上传文件后,我可以通过例如xyz.cloudfront.net/myExampleFile.txt link.

但是 当我创建 S3 存储桶时eu-west-1eu-central-1,然后我一打开 xyz.cloudfront.net/myExampleFile .txt link,我的浏览器被重定向到直接 S3 存储桶 link xyz.s3.amazonaws.com/myExampleFile.txt,这当然不起作用。

--

我不知道我可能做错了什么...由于这个事实,我无法直接向 AWS 提交任何支持请求(“基本支持计划下不提供技术支持”) ,我想我可能会问这里的社区,如果其他人遇到同样的奇怪行为或有任何提示,这里出了什么问题?

提前感谢您的帮助

凤凰

[1] 下的第 1、2 步和第 4 步使用 REST API 端点作为源,访问受 https://aws.amazon.com/de/premiumsupport/knowledge-center/cloudfront-serve-static-website/ 上的 OAI 限制

您可能遇到了描述的问题 here

If you're using an Amazon CloudFront distribution with an Amazon S3 origin, CloudFront forwards requests to the default S3 endpoint (s3.amazonaws.com), which is in the us-east-1 Region. If you must access Amazon S3 within the first 24 hours of creating the bucket, you can change the Origin Domain Name of the distribution to include the regional endpoint of the bucket. For example, if the bucket is in us-west-2, you can change the Origin Domain Name from bucketname.s3.amazonaws.com to bucketname.s3-us-west-2.amazonaws.com.