是否可以压缩AWS S3中已经存在的文件? [英] Is it possible to compress files which are already in AWS S3?

查看:228
本文介绍了是否可以压缩AWS S3中已经存在的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个S3存储桶,其中包含各种各样的文件.一些文件的大小很大,例如8Gb,11GB.最大的一个是14.6GB.

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.

AWS云服务本身是否可以直接压缩文件并将其放回S3中?

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

我能想到的解决方案之一是创建一个EC2实例,将文件在那里压缩并压缩回S3 Bucket中.

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?

推荐答案

Amazon S3不提供压缩功能.

There is no compression capability provided by Amazon S3.

您应该在与S3存储桶相同的区域中创建Amazon EC2实例,然后下载/压缩/上传文件.

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.

这篇关于是否可以压缩AWS S3中已经存在的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆