How to manually invalidate AWS CloudFront

Christina Hastenrath
2 min readMay 6, 2020

This is a short and sweet tutorial on how you can clear cache and invalidated AWS CloudFront in 3 simple manual steps.

Invalidating objects removes them from the CloudFront edge cache. You can also invalidate single files with the aws-cli. This post will not got into this option but you can read more about invalidating via aws-cli in the AWS docs.

Please note that you can find more on pricing of submitting invalidation paths in the AWS Docs.

Right, let’s get started.

First you have to log into your AWS console and navigate to CloudFront service. This blog posts assumes you have your CloundFront Instance already connected to your S3 bucket which you want to invalidate.

Then select the CloudFront ID that is connected to the bucket, which you want to clear the cache from.

Navigate into the CloudFront instance and go to the `Invalidations` tab where you can ‘Create Invalidation’.

--

--

Christina Hastenrath

Molecular Biologist turned Software Engineer. I write about my code. Connect with me on Twitter @etTinchen