I am using s3 bucket as origin in cloudfront to cache and host my reactjs website.
After every deployment on s3 i want to invalidate the cache of my cloudfront distribution so that the user can get the latest build deployed..
So my question is: if i use "/*" as a invalidation query would it be considered as a 1 path ? or it would be 500 paths ?
CodePudding user response:
I think the answer is the same 
EDIT : For your confirmation, you can find the number of invalidations for a period of time by filtering the "Cost & Usage Report" (AWS console) by service="CloudFront" and usageType="Invalidations".
Hope this answers your question. Feel free to comment for any question.
CodePudding user response:
The below excerpt which clarifies regarding the paths:
The charge to submit an invalidation path is the same regardless of the number of files you're invalidating: a single file
(/images/logo.jpg)or all of the files that are associated with a distribution(/*). For more information, see Amazon CloudFront Pricing.
The text is taken from docs mentioned in the link below: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-specifying-objects-paths
which means that the "/*" is a single path.

