AWS Stopped loading images and scripts with request response 403

Viewed 16

Everything was working as it should yesterday, I didn't change anything, and all of a sudden my website keeps returning 403 when trying to load images and scripts.

I'm using S3 + CloudFront + Route53.

When I try to access an image this is what I get. CloudFront link (without Route53) also gives this error.

<Error>
 <Code>AccessDenied</Code>
 <Message>Access Denied</Message>
 <RequestId>5S7H4ANRME10E5Z3</RequestId>
 <HostId>RvrRpoRLvCyKwo5KJhw2I730WnxeVEWOfX8TGDZvwUfqZ34yq3KIkaU4YiaI7oI1oI3N3zGBPmQ=</HostId>
</Error>

My permission script

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "PublicRead",
            "Effect": "Allow",
            "Principal": "*",
            "Action": [
                "s3:GetObject",
                "s3:PutObject"
            ],
            "Resource": "arn:aws:s3:::blucleancampaign.com.br/*"
        }
    ]
}
0 Answers
Related