The following is an example of a script that executes during our deployment process to invalidate a CloudFront distribution. The goal is to just invalidate everything in the entire distribution, so we use /
as the path.
aws cloudfront create-invalidation --distribution-id SOMEDISTRIBUTIONID --paths /
But the CloudFront Invalidation documentation recommends that the invalidation path uses a wildcard, like this:
aws cloudfront create-invalidation --distribution-id SOMEDISTRIBUTIONID --paths "/*"
What is the difference between these two path arguments? Do they both invalidate everything, or no? And is there a pricing difference?