1
votes

I created a bucket just to test the archiving in AWS Glacier using S3. I added a rule using the Lifecycle rules to Permanently Delete 3 days after the object's creation date and I applied this rule to the whole bucket.

Now after 3 days, the test bucket is empty as it should be but I don't know how to access my archived bucket in Glacier using S3. I searched on the AWS documentation and came across this link but how can I restore an object if the bucket is empty, kindly help me to restore the bucket from AWS Glacier.

1

1 Answers

1
votes

How did you setup your life-cycle rule?
If you set it to glacier after 1 day and permanently delete after 3 days then it is GONE.

Gone from your bucket after 1 day = put Item is in Glacier. remove from bucket. You could restore it from glacier at this time.

Permanent Delete after 3 days = delete from glacier. file does not exist in glacier or bucket

http://docs.aws.amazon.com/AmazonS3/latest/UG/lifecycle-configuration-bucket-no-versioning.html


Updated answer with image

Change your 'Action on Objects' to Archive and then Permanently Delete and set the glacier day to 3 and your permanently delete date to a long time from now (365 days). At 365 days your object will be removed from glacier. AWS S3 Rue