I made some changes to my origin server which now serves different data from same url.
I tried to clear my cache completely by doing the following invalidation in CF UI:
But this didn't work. How can I wipe off completely the Amazon CloudFront cache's in one go?
According to AWS documentation you need to use /* instead of /
CloudFront does now support wildcard or full distribution invalidation. You will need do do one of the followng.
http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidating-objects-console
You need to use
/*
instead of/
.Also, if you need to do this frequently, you can do it using the AWS CLI.
Edit: thanks to @speckledcarp, you need to use
"/*"
(with quotes) when using the CLI.Note: this command is still in preview phase, but you can use it if you enable preview running: