s3cmd icon indicating copy to clipboard operation
s3cmd copied to clipboard

Equivalent of `aws cloudfront create-invalidation --distribution-id distribution_ID --paths "/*"`

Open MLopez-Ibanez opened this issue 8 months ago • 1 comments

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!

MLopez-Ibanez avatar Dec 05 '23 18:12 MLopez-Ibanez

Maybe related to https://github.com/s3tools/s3cmd/issues/848

MLopez-Ibanez avatar Dec 05 '23 18:12 MLopez-Ibanez