Will the objects be archived in glacier in this scenario?

0

Hello, I have a policy on s3 to archive on glacier all objects every day. I want to restore some files for 30 days. Will the objects be available for 30days or will be "stored in glacier" the next day?

I have restored the objects and 3 days later I see them that they are again in glacier. This could mean that I haven't send the correct requests to export them, or the policy has archived them on the next day.

Which one is true?

asked a year ago213 views
1 Answer
1

hi,

A restore operation makes a copy of the object available on it's bucket, where you can run the GET operation etc. After you receive a temporary copy of the restored object, the object's storage class remains S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive. So the lifecycle rules for transition, you specified above may not apply.

I propose to look at the expiry date on your restore call and make sure the details are correct - https://docs.aws.amazon.com/AmazonS3/latest/userguide/restoring-objects.html

To calculate the expiry date, Amazon S3 adds the number of days that you specify to the time that you request to restore the object, and then rounds to the next day at midnight UTC. This calculation applies to the initial restoration of the object and to any changes to availability that you request. For example, if an object was restored on October 15, 2012, at 10:30 AM UTC, and the number of days that you specified is 3, the object is available until October 19, 2012, at 00:00 UTC. If, on October 16, 2012, at 11:00 AM UTC, you change the number of days that you want the object to be accessible to 1, Amazon S3 makes the restored object available until October 18, 2012, at 00:00 UTC.

Hope this helps, Thanks Arun

AWS
Arun
answered a year ago
profile pictureAWS
EXPERT
kentrad
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions