简体   繁体   English

如何访问Cloudfront到s3存储桶对象简单url

[英]how to access cloudfront to s3 bucket object simple url

i am trying to access cloudfront to s3 bucket object response "AccessDenied". 我正尝试访问s3存储桶对象响应“ AccessDenied”的cloudfront。 xxxxxxxxxxxxx.cloudfront.net/bucket_name/35.jpg xxxxxxxxxxxxx.cloudfront.net/bucket_name/35.jpg

inside bucket i can access url this is "public" url. 在存储桶中,我可以访问url,这是“公共” URL。 https://s3.ap-south-1.amazonaws.com/bucket_name/35.jpg https://s3.ap-south-1.amazonaws.com/bucket_name/35.jpg

I am also try another bucket with another cloudfront ID with signed URL result is same. 我也尝试使用具有签名URL结果的另一个cloudfront ID的另一个存储桶。 Please view code here => amazon cloudfront Error "AccessDenied" 请在这里查看代码=> Amazon cloudfront错误“ AccessDenied”

You should: 你应该:

  • Configure your CloudFront distribution with an Origin to point to your S3 bucket 使用起点将CloudFront分配配置为指向S3存储桶
  • Access the content via: xxxx.cloudfront.net/35.jpg 通过以下xxxx.cloudfront.net/35.jpg访问内容: xxxx.cloudfront.net/35.jpg

See: 看到:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM