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

preguntada hace 2 meses158 visualizaciones
1 Respuesta
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
EXPERTO
respondido hace 2 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas