JAEN

Cloud

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

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store