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.

질문됨 2년 전7111회 조회
1개 답변
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
profile pictureAWS
전문가
kentrad
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠