Is there a mechanism for automatically compressing objects loaded to S3?
I have a customer who has asked for the following functionality:
When a new object is loaded into S3, there is a "compression" option in the API which automatically compresses this file before loading it into S3.
This would save customer money in storage costs.
This does not exist as a built-in feature of S3. However, you can have Lambda compress objects as they are added to the bucket. Here is an example: lambda-s3-zip.
You can also compress on the command line as you are copying the object into S3.
gzip myfile.txt | aws s3 cp - s3://mybucket/myfile.txt.gz
How can files in an S3 bucket be tracked?Accepted Answerasked 2 years ago
Does S3 charge for delete marker objects with a Null ID?Accepted Answerasked 3 years ago
S3 object count using Athena CuRAccepted Answerasked 2 years ago
S3 object lock on existing S3 objects?Accepted AnswerEXPERTasked 2 years ago
S3 file drop fire multiple LambdasAccepted Answerasked 3 years ago
dealing with duplicate emailsasked 2 years ago
Is there a mechanism for automatically compressing objects loaded to S3?asked 2 months ago
s3 lifecycle transition costsAccepted Answerasked 2 years ago
S3 Inventory : Is there a limit to the number of objects in a bucket that will show up in the inventory?Accepted Answerasked 4 years ago
Multi-account CloudTrail S3 object ownershipAccepted Answerasked 2 years ago