Is it possible to compress files which are already in AWS S3?

泄露秘密 提交于 2021-01-29 11:06:52

问题


I have a S3 bucket which has wide variety of files. Some of the files are of huge size like 8Gb, 11GB. Biggest one is of 14.6GB.

I was searching for the way compress them. Obviously, i can download them locally and compress them and put it back in bucket. I thought its not good way to achieve it as i have to download the files first which is time consuming process.

Is there any way in AWS cloud services itself using which i can compress the files directly and put them back in S3?

One of the solution i can think of is creating an EC2 instance get the files there and compress and put them back in S3 Bucket.

Are there any better methods i can use?


回答1:


There is no compression capability provided by Amazon S3.

You should create an Amazon EC2 instance in the same region as the S3 bucket, then download/compress/upload the files.

Network bandwidth varies by instance type, so if you find the downloads/uploads running slowly, change to a bigger instance type. Use spot instances to make the whole process low-cost.



来源:https://stackoverflow.com/questions/51779234/is-it-possible-to-compress-files-which-are-already-in-aws-s3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!