Yeah this seems to be the best way to go. Thanks
Just set the retention policy on the bucket to the lowest and let it self expire.
Rather than calling the API, consider S3 Batch operations. You can give it an manifest file to process:
https://aws.amazon.com/s3/features/batch-operations/
I’m not sure this will work in your specific Glacier case. Take a look at this option though
Thanks but my use case is for S3 Glacier, not S3’s Glacier. Not the best naming convention… haha
He’s not using S3
Take a look at this deletion solution: https://aws.amazon.com/solutions/guidance/automated-deletion-of-vault-archives-in-amazon-s3-glacier/
A bit overkill in the resources it creates imo but it simplifies the process. Just make sure you delete the stack and any leftover resources that won’t be deleted by removing the stack such as the s3 bucket
Was confused myself. Sorry for pointing you to the wrong place
No need to apologize! I appreciate you taking the time to respond. Hope you have a nice evening
I would highly recommend you grab one of the python scripts that are out there like this one instead of using the AWS CLI. The AWS CLI is rather heavy for one command, when you start calling it thousands or more of times in a row, that extra overhead for each call adds up fast.
Create lifecycle rule to expire the objects
Commenting on I think I made a big mistake…
Are you not supposed to be professionals
You know you will be billed a minimum of 40KB for each archive and 90 days of storage minimum?
If it takes you 90 days to delete all this it’s not going to cost any more.
The fastest way to get rid of it is to just delete the AWS account and create a new one if needed.