CloudFront 403 when loading image/scripts

0

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 CloudFront to serve my S3

My permission script

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

What can I do to fix this 403 issue, I tried everything

asked 2 years ago1184 views
1 Answer
0

Here we have a very detailed troubleshooting guide for CloudFront 403: https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-troubleshoot-403-errors/

In your specific case, you might find "An Amazon S3 origin returning 403 error" section useful. As you suggested that there was no change and it was working properly, I wonder if the objects in the bucket were accidentally deleted, as described in "Confirm that the requested objects exist in the bucket" section in this article: https://aws.amazon.com/premiumsupport/knowledge-center/s3-website-cloudfront-error-403/

AWS
weidi
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions