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ヶ月前119ビュー
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 ?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ