Cloudfront Invalidation /*

0

Hi there, I have a website, using my own domain with route 53, S3 buket set to block all public access and set to static website. I created a cloudfront distribution, a behavior and an Origin access control, copied policy into the bucket into the bucket policy. My website was running perfectly until i created a cloudfront Invalidation and set to /* it is been 4 hrs and my website wont load , all I get is this message:

This XML file does not appear to have any style information associated with it. The document tree is shown below. <Error> <Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>W028RDKP2NRYY5NH</RequestId> <HostId>/f7tK+8Nb2rrAbAJuaHWorp2iEC1GoTXkX83EJAQtthMLuGvG7HBG5AzZTIxETS/rX7G7Snrslc=</HostId> </Error>

setting the invalidation to /* will actually delete things or change configurations?

thanls

1 Antwort
1

Hello.

If you run Cloudfront Invalidation with "/*" specified, the cache file will be deleted.
However, running it should not make it inaccessible.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html

There may be something wrong with the bucket policy or CloudFront settings.
Please refer to the following documents and try troubleshooting.
https://repost.aws/knowledge-center/s3-website-cloudfront-error-403

The name of the file being accessed may also be incorrect.
Also, try accessing by adding "/" to the end of the URL.

https://cloudfront-domain.com/
profile picture
EXPERTE
beantwortet vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen