TECHIES WORLD

For Techs.... Techniques.... Technologies....

AWSBashLinux

How to invalidate Cloudfront cache using aws cli

Aws cli provides the option to invalidate Cloudfront cache programmatically.

#aws cloudfront create-invalidation --distribution-id ID --paths '/*' > output.json

Where ID need to be replaced with the id of the corresponding Cloudfront distribution.

That's all…