I want to host a static site via Amazon CloudFront from an S3 bucket. If I update the content of the bucket with a new version of the page, is there a way I can ensure the distribution happens in an atomic way?
What I mean is, if I have assets like a.js
and b.js
, that the updated version of both is served at the same time, and not e.g. the old a.js
and new b.js
.
You have a couple of options: