如何在AWS S3上更改默认存储类 [英] How to change Default Storage Class on AWS S3

查看:455
本文介绍了如何在AWS S3上更改默认存储类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,存储桶中的默认存储为STANDARD.在推动每个对象的同时,我们可以更改存储空间.

By default storage in a bucket is STANDARD. And while pushing each object we can change the storage.

但是有办法(可能通过AWS控制台)在存储桶级别更改默认存储吗?

But is there a way to change default storage at Bucket level ( probably through AWS Console) ?

推荐答案

从技术上讲,您不能基于每个存储桶设置存储类.但是,您可以在存储桶上指定生命周期策略,以将新对象自动过渡到存储类,因为它表示

It's technically true that you cannot set the storage class on a per-bucket basis. However, you can specify a lifecycle policy on your bucket to automatically transition new objects to a storage class, as it says here.

标准-IA"存储类是在对象级别设置的,并且可以 与Standard存在于同一存储桶中,从而允许您使用生命周期 在存储之间自动转换对象的策略 类,而无需进行任何应用程序更改.

The Standard - IA storage class is set at the object level and can exist in the same bucket as Standard, allowing you to use lifecycle policies to automatically transition objects between storage classes without any application changes.

为此,请转到您的存储桶的管理"标签,然后单击添加生命周期规则"

To do this, go to the Management tab for a your bucket and click 'Add lifecycle rule'

命名,然后单击下一步.对于配置过渡",选择当前版本.单击添加过渡,选择之后过渡到Standard-IA",然后选择30,因为最小值是30.完成规则,一切都准备就绪.

Give it a name and click next. For 'Configure transition', select current version. Click Add transition, choose "Transition to Standard-IA after" and choose 30, because 30 is the minimum. Finish your rule and you are all set.

这篇关于如何在AWS S3上更改默认存储类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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