Questions about modifing S3 storage classes

0

Currently, I am managing bucket lifecycle rules.

Basically, we are aware that the storage class cannot be switched from standard to Glacier Instant Retrieval unless the size of the s3 object exceeds 128KiB.

However, I found out that it is possible to change the storage class of certain objects that do not exceed 128KiB to Glacier Instant Retrieval through the AWS console.

Can we say that the storage class of this changed object has changed from standard class to Glacier Instant Retrieval?

Also, is it possible to change the storage class of an object whose size does not exceed 128 KiB to Glacier Instant Retrieval through cli?

已提问 3 个月前118 查看次数
1 回答
3
已接受的回答

Hello.

Can we say that the storage class of this changed object has changed from standard class to Glacier Instant Retrieval?

The storage class itself is saved as Glacier Instant Retrieval.
Prices will change at that time.
For example, an 80KB object will be billed as 128KB.
https://aws.amazon.com/s3/pricing/?nc1=h_ls

S3 Glacier Instant Retrieval has a minimum billable object size of 128 KB. Smaller objects may be stored but will be charged for 128 KB of storage at the appropriate storage class rate.

Also, is it possible to change the storage class of an object whose size does not exceed 128 KiB to Glacier Instant Retrieval through cli?

You can use the "--storage-class" option in the "aws s3 cp" command options.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/cp.html

aws s3 cp --storage-class GLACIER_IR s3://test-s3/test.txt s3://test-s3/test.txt
profile picture
专家
已回答 3 个月前
profile picture
专家
已审核 2 个月前
profile pictureAWS
专家
已审核 3 个月前
  • Thank to you, my issue has been solved !! 🙏

  • If we are moving 200 million files from Standard to Glacier_IR using "aws s3 cp --recursive --storage-class GLACIER_IR s3://test-s3 s3://test-s3" what are we paying for this process? Is it only COPY operations for Standard storage class? E.g. $0.005/1000*200m = $1000 ?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则