Uploading ZIP file to S3, use EC2 to Unzip

后端 未结 4 1628
无人及你
无人及你 2020-12-24 14:26

I have a Codeigniter web app that is uploading many tiny files every hour to Amazon S3, which is causing my S3 request charges to shoot up real fast. One way to overcome thi

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-24 14:59

    If you have an EC2 machine in the same region I would suggest you upload it there zipped and then it drop it to s3 from there unzipped. S3 cannot unzip it on its own as its all static.

    Theres no charges between ec2 and s3 so ec2 can handle the unzipping and then write it out into your s3 bucket without additional transfer charges.

提交回复
热议问题