s3-sync-action icon indicating copy to clipboard operation
s3-sync-action copied to clipboard

Add optional Cloudfront invalidation step at the end

Open jgarth opened this issue 4 years ago • 5 comments

If $AWS_CF_DISTRIBUTION_ID is set, a Cloudfront invalidation request will be created for paths /*. Useful when hosting websites with S3 + Cloudfront.

jgarth avatar May 14 '20 16:05 jgarth

@jgarth It would be useful to validate not /*, but objects that were really changed.

sergeyzwezdin avatar Dec 02 '20 00:12 sergeyzwezdin

That could be a really useful feature, but it could be optional. Currently we have issues with implementing 100% bulletproof CSP with nonce, and it happens that Cloudfront do not have functionality to inject nonce to all script and style tags in html served, so we are thinking about other solutions that provides desired CSP nonce security. if somebody have non-PHP solutions, please share with me.

JustFly1984 avatar Dec 02 '20 04:12 JustFly1984

In addition to AWS_CF_DISTRIBUTION_ID, what if INVALIDATE_PATHS was also added? Perhaps 'index.html' could be a suitable default value.

Currently, I'm getting by with https://github.com/chetan/invalidate-cloudfront-action but it sure would be great to have everything under one roof, so to speak.

dkadrios avatar Jun 08 '21 02:06 dkadrios

@jakejarvis Any potential for getting this evaluated/merged?

michaellyons avatar Apr 15 '22 21:04 michaellyons

Any update on this? Could be really helpful!

jeanhdev avatar Mar 30 '23 08:03 jeanhdev