Skip to content

Create lambda that can invalidate parts of the website on update

Cloudfront caching helps save money but can also prevent changes from being published right away. We can avoid this by creating an invalidation of the files when an MR is merged via a lambda. lambdas can be setup to trigger when there is an update to the bucket so it doesn't need to run on our CI/CD pipelines.