简体   繁体   中英

How to set the storage class of an AWS S3 Glacier Multipart Upload?

How do I specify a storage class of Deep Archive when performing a multipart upload into Glacier? I'm using boto3 to bring together a large number of files, and the CLI won't accommodate me.

Also, I have already made a number of large multipart uploads into Glacier, and I want them to be in Deep Archive. How to I accomplish this?

There are two types of "Amazon Glacier".

The original Amazon Glacier involves Vaults and Archives . It is slow and difficult to use.

Then, AWS introduced Glacier storage classes in Amazon S3 . This allows files to be uploaded to Amazon S3, while specifying a Storage Class of Glacier or Glacier Deep Archive . This is faster, much easier to use and is actually cheaper!

It would appear that you are using the original version of Glacier. I humbly recommend that you instead use S3 with Glacier storage classes. You will find it easier, faster and cheaper. You can then specify the Storage Class as part of the upload (eg in ExtraArgs ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM