1
votes

Our S3 bucket contains a mix of objects in Standard and Glacier storage class(due to the lifecycle rules we setup). I want to understand how to delete the Glacier storage class objects. I looked at the Glacier console and we don't have a Vault/archive to delete. So, my guess is that S3 is managing the Glacier vault for us. I also looked at the lifecycle rule blog post(https://aws.amazon.com/blogs/aws/archive-s3-to-glacier/) to validate this.

TL;DR

So, is deleting an object (in Glacier storage class) from S3 (using the aws CLI or lifecycle rules) sufficient to delete it from Glacier as well?

1

1 Answers

2
votes

So, is deleting an object (in Glacier storage class) from S3 (using the aws CLI or lifecycle rules) sufficient to delete it from Glacier as well?

Yes, it is. Deleting the object from S3 removes it from Glacier.

The GLACIER storage class uses the very low-cost Amazon Glacier storage service, but you still manage objects in this storage class through Amazon S3.

https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html

When S3 stores objects in the GLACIER storage class, S3 doesn't put that data into your Glacier in your AWS account. S3 seems to have its own, separate interface to Glacier. (Similarly, EBS snapshots are stored "in S3," but not in "your" S3.)