1 Answer
- Newest
- Most votes
- Most comments
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:
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/restoring-objects.html?icmpid=docs_amazons3_console
- https://repost.aws/knowledge-center/restore-s3-object-glacier-storage-class
Comment here if you have additional questions, happy to help.
Abhishek
Relevant content
- asked 2 years ago
- asked 3 years ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago