aws cloudfront
CautionCloudFront invalidation
aws cloudfront create-invalidation --distribution-id <id> --paths '/*'
Purges cached content — the fix for 'deployed but still old'. Narrow paths invalidate faster and cheaper.
Examples
aws cloudfront create-invalidation --distribution-id E2ABC --paths '/index.html' '/assets/*'Targeted invalidation
Syntax
aws cloudfront list-distributions / create-invalidation --distribution-id id --paths p
Before you run it
Blanket '/*' purges cost money.
Related commands
- aws s3 syncSync with S3
- curlHTTP client
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store