0

我已经通过 AWS 控制台设置了云端。不知何故,云端无法访问 Amazon S3 对象并引发 403 响应错误。

我相信这是一个 s3 存储桶策略问题。以下是我目前的桶策略

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "AddPerm",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::xyz/*"
        },
 ] 
 }

您能否帮助我修改现有的存储桶策略以便云端可以访问 s3 对象?

编辑:添加 s3 原点快照

在此处输入图像描述

添加通用参数

在此处输入图像描述

添加请求的标头:

2016-11-22  09:55:38    DEL51   878 119.82.78.98    GET d3k1wzyp6coxxx.cloudfront.net   /4e6a9d2f3df2bdba96396879208214.png 403 -   Mozilla/5.0%2520(Windows%2520NT%25206.1;%2520WOW64)%2520AppleWebKit/537.36%2520(KHTML,%2520like%2520Gecko)%2520Chrome/54.0.2840.99%2520Safari/537.36    -   -   Error   EEEcSuKU1YPrpxQ_jIqaaUfKCydhG6dlIbt9_MLmxeGvwUooJYdTrw==    d3k1wzyp6coxxx.cloudfront.net   http    420 0.000   -   -   -   Error   HTTP/1.1
2016-11-22  09:55:38    DEL51   878 119.82.78.98    GET d3k1wzyp6cxxx.cloudfront.net    /favicon.ico    403 http://d3k1wzyp6coxxx.cloudfront.net/4e6a9d2f3df2bdba96396879208214.png Mozilla/5.0%2520(Windows%2520NT%25206.1;%2520WOW64)%2520AppleWebKit/537.36%2520(KHTML,%2520like%2520Gecko)%2520Chrome/54.0.2840.99%2520Safari/537.36    -   -   Error   XXnzzYHG8-Vr-pc40tTd0sl46ASu_txv_S_SdTc2T70I46WrHMmEsQ==    d3k1wzyp6coxxx.cloudfront.net   http    378 0.001   -   -   -   Error   HTTP/1.1
4

0 回答 0