s3-sync-action
s3-sync-action copied to clipboard
Add optional Cloudfront invalidation step at the end
If $AWS_CF_DISTRIBUTION_ID
is set, a Cloudfront invalidation request will
be created for paths /*
. Useful when hosting websites with S3 + Cloudfront.
@jgarth It would be useful to validate not /*
, but objects that were really changed.
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.
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.
@jakejarvis Any potential for getting this evaluated/merged?
Any update on this? Could be really helpful!