Is there a mechanism for automatically compressing objects loaded to S3?
0
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.
asked 2 months ago2 views
1 Answers
0
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
Relevant questions
How can files in an S3 bucket be tracked?
Accepted Answerasked 2 years agoDoes S3 charge for delete marker objects with a Null ID?
Accepted Answerasked 3 years agoS3 object count using Athena CuR
Accepted Answerasked 2 years agoS3 object lock on existing S3 objects?
Accepted AnswerS3 file drop fire multiple Lambdas
Accepted Answerasked 3 years agodealing with duplicate emails
asked 2 years agoIs there a mechanism for automatically compressing objects loaded to S3?
asked 2 months agos3 lifecycle transition costs
Accepted Answerasked 2 years agoS3 Inventory : Is there a limit to the number of objects in a bucket that will show up in the inventory?
Accepted Answerasked 4 years agoMulti-account CloudTrail S3 object ownership
Accepted Answerasked 2 years ago