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.

posta 2 anni fa7114 visualizzazioni
1 Risposta
0
Risposta accettata

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
ESPERTO
kentrad
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande