change storage class

0

I need to change the glacier deep archive storage class to s3 glacier instant retrieval, due to an error my team changed the entire directory. What is the best way to change the class, remembering that it is not objectives but several folders?

thanks

質問済み 4ヶ月前155ビュー
1回答
0

Thank you for posting your question and I understand the situation.

Unfortunately objects of storage class as Glacier Deep Archive(GDA) must be restored first and there is no direct way of changing storage class from GDA to Glacier Instant Retrieval(GIR). You'll need to restore it first and then change the storage class to GIR.

Here is what I'd do:

      aws s3api restore-object --bucket <bucket_name> --key <object_name> --restore-request '{"Days":25,"GlacierJobParameters":{"Tier":"Standard"}}' --profile <cli_profile>

      aws cp s3://<bucket_name>/<object_name> s3://<bucket_name>/<object_name> --storage-class GLACIER_IR --force-glacier-transfer --profile <cli_profile>

I'd suggest you to go through following documentation and re:Post article, which will help you to achieve, what you are trying here:

Comment here if you have additional questions, happy to help.

Abhishek

profile pictureAWS
エキスパート
回答済み 4ヶ月前
profile picture
エキスパート
レビュー済み 4ヶ月前

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

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

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

関連するコンテンツ