访问S3网站CloudFront分发被拒绝

时间:2018-08-10 09:23:16

标签: amazon-web-services amazon-s3 amazon-cloudfront

我是CloudFront的新手,但无法访问我的网站。

https://www.mypleaks.com/

请在下面参考我的配置。

enter image description here

时段政策如下:-

{
"Version": "2012-10-17",
"Statement": [
    {
        "Sid": "AddPerm",
        "Effect": "Allow",
        "Principal": "*",
        "Action": "s3:GetObject",
        "Resource": "arn:aws:s3:::www.mypleaks.com/*"
    },
    {
        "Sid": "2",
        "Effect": "Allow",
        "Principal": {
            "AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity XXXXXXXXXX"
        },
        "Action": "s3:GetObject",
        "Resource": "arn:aws:s3:::www.mypleaks.com/*"
    }
]}

请帮助我解决问题。

0 个答案:

没有答案