aws cloudfront create-invalidation --distribution-id
aws cloudfront create-invalidation --distribution-id <id> --paths <path>...
Risk: Safe
What it does
Tells CloudFront's kiosks to forget old copies of some pages.
When to use it
When shoppers still see an old page after you changed it.
Example
$ aws cloudfront create-invalidation --distribution-id EDFDVBD6EXAMPLE --paths "/example-path/example-file.jpg"Forget one file everywhere. Status starts as InProgress.
Learn it in: Route 53 and CloudFront · Official docs