Finally started transferring to offsite long term storage for my company - about 65TB of data - but I’m getting billed around $.004 or $.005 per gigabyte - so monthly billed is around $357.
It looks to be about the archival instant retrieval rate if I did the math correctly, but is the case when files are stored in Deep glacier only after 180 days you get that price?
Looking at the storage lens and cost breakdown, it is showing up as S3 and the cost report (no glacier storage at all), but deep glacier in the storage lens.
The bucket has no other activity, besides adding data to it so no lists, get, requests, etc at all. I did use a third-party app to put data on there, but that does not show any activity as far as those API calls at all.
First time using s3 glacier so any tips / tricks would be appreciated!
Can you post some screenshots of what some of the objects are stored as from the storage class perspective. There are a few different types of Glacier as you know so the objects themselves or the UsageType will help pinpoint what they’re stored as.
In the cost explorer, can you also post a screenshot or two of your charges the the UsageType Group By?
Storage Lens won’t have what you need, but if you set up S3 Inventory query access via Athena that should give you more detailed metrics of the objects you’re storing.
The 180 day point is just a minimum timeframe of what you pay for if you delete it (For Glacier Deep). Ex: If you upload 5TB today, and then delete them tomorrow, you are paying for 6 months of that 5TB.
you get charged for the metadata that s3 nees to store -
*** For each object that is stored in the S3 Glacier Flexible Retrieval and S3 Glacier Deep Archive storage classes, AWS charges for 40 KB of additional metadata for each archived object, with 8 KB charged at S3 Standard rates and 32 KB charged at S3 Glacier Flexible Retrieval or S3 Deep Archive rates.
Perhaps more importantly, when you uploaded the objects, assuming you used AWS CLI, did you use aws s3 or aws glacier? They are different APIs, objects are stored and retrieved differently, and have different pricing.
I don’t believe you would see an S3 bucket if you uploaded objects to a Glacier vault, though.
You can easily check how much data is in which tier and number of objects via the Metrics tab of the bucket. This is the simplest way to check other than Storage Lens and S3 inventory report. There is about one day lag time, though. Or, just browse to one of the objects in the console, and look at the right-most column for its storage class, assuming all objects are in the same tier.
Billing will also show the charges breakdown in storage classes.
When you uploaded the objects, did you upload them directly to the Deep Archive tier? For example, in AWS CLI, you specify --storage-class DEEP_ARCHIVE.
If you didn’t, the default is STANDARD. If you had configured a lifecycle rule to transition objects to the Deep Archive tier after 0 days, it would still take about one day to transition the objects.
If true, the objects in a transitory tier for a short time period, and the lifecycle transition charges would show up in your billing information breakdown, and that might have skewed your per GB-month calculation.
Ah - yeah - sorry - I knew about that I just meant it shouldn’t anything substantial for metadata in total - for 130k objects it’s somewhere about 6-7GB (based on the 8kb + 32KB per object) of data extra - nothing crazy!
Yeah - been meaning to post these up - I haven’t gotten into Athena just yet - but here are the more basic screen shots so far (looking into the S3 Inventory Query tonight) - see the original post for that info now!
I did not use a Glacier vault - just standard S3 designated as Deep Glacier on upload (using a 3rd party app, not CLI…I had way too much stuff to upload!). The logs show it was denoted as DEEP_Archive - and the objects all stay Deep Archive. I’ve uploaded screen shots of the Storage Lens and Billing screen shots, along with some example objects as well in the original post!
Bahaha - oh…I did**:)** There was a month of some crazy tar+compressing scripts, multi-threading…parallelling…you name it - I compressed it. Well…almost everything :).
Can you also in Cost Explorer, change the group by to be UsageType? That’s going to be the most useful billing identifier for you as that’ll be the exact specific API charge that you’re spending on
That’s the problem - about 15TB of incomplete multi-part uploads kicking around - interesting. As the user suggested below, I’ll set up a life cycle rule to get rid of it - but I’m interested to see how/how they came about.
I’m guessing my sync/upload app died or was restarted. Appreciate all the help with this one!
Yep absolutely! For future reference, that UsageType metric is by far the most detailed and useful thing for you when looking at something cost related. They are all very specific and tied to a specific charge, so looking it up usually gets you what you need. Storage Lens is very helpful but has its limits.
Highly recommend looking into S3 Inventory and querying via Athena as you can get an insane amount insights at the object level, which you really can’t do otherwise (easily)