How to Clear Cloudfront Cache Using Aws Cli

aws cloudfront create-invalidation --distribution-id $DISTRIBUTION_ID --paths '/*'

Replace $DISTRIBUTION_ID with the cloudfront distributions ID

Reference: