s3cmd
s3cmd copied to clipboard
Equivalent of `aws cloudfront create-invalidation --distribution-id distribution_ID --paths "/*"`
AWS CLI offers the option to invalidate all files under a given path with a single request.
See https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#invalidation-access-logs
If you use the AWS Command Line Interface (AWS CLI) for invalidating files and you specify a path that includes the * wildcard, you must use quotes (") around the path.
For example: aws cloudfront create-invalidation --distribution-id distribution_ID --paths "/*"
There doesn't to be an equivalent for s3cmd
? In particular s3cmd
seems to send one invalidation request per file, which could end up being very expensive!
Maybe related to https://github.com/s3tools/s3cmd/issues/848