s3tools / s3cmd

Official s3cmd repo -- Command line tool for managing S3 compatible storage services (including Amazon S3 and CloudFront).
https://s3tools.org/s3cmd
GNU General Public License v2.0
4.56k stars 905 forks source link

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

Open MLopez-Ibanez opened 10 months ago

MLopez-Ibanez commented 10 months ago

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 commented 10 months ago

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