Invalidate CloudFront with Lambda and S3 events
Bla bla bla… You’re here for the solution, not to hear me talk about it. See code example. Improvise, adapt and overcome.
One thing though, unless you have a shit metric ton of objects that you want to keep all hot and sizzling in cache I suggest you just invalidate the entire path, and not per object. Amazon has this weird pricing model where wildcard invalidations are priced as a single path.Published: 28 February, 2019