AWS Cost for Uploading to S3 and immediately transitioning to glacier

amazon s3amazon-glacieramazon-web-services

I have a client uploading multiple TB of data to Glacier. They did a snowball that got 65 TB of data, and they are going to do the remaining ~25 via upload. Currently they are uploading directly to Glacier with FastGlacier, but that tool is running on their sole Windows machine (a full Mac shop) and is constantly crashing from queuing so much data. Additionally, this program leave a lot to be desired in regards to searching/browsing the store, as in order to view files in the Glacier you need to download the inventory (with the 4-6 hour lead time).

For consistency, we'd like to upload to the S3 share that we used for the Snowball, with the same 0 day transition to Glacier using a lifecycle management rule, but don't want to incur massive costs of S3 for it. I know S3 costs is based on average usage over the month, but not sure how to estimate this.

Best Answer

The AWS storage services overview whitepaper (two links) says "You can specify an absolute or relative time period (including 0 days) after which the specified Amazon S3 objects should be transitioned to Amazon Glacier".

S3 lifecycle rules say you can't transition S3 data to Infrequently access storage class until 30 days after upload. However you can transition to glacier immediately - "0 days" appears to be a valid setting.

I tried this myself. I created a new bucket with a lifecycle rule to transition to glacier after 0 days. I uploaded a small file using S3 standard class. The file changed to the glacier storage class between 5 and 8 hours after it was uploaded. I can't say more precisely because I don't see any logs about this, and I only checked occasionally.

You could consider using a storage gateway, but that relies on running a virtual machine on premises. It stores data in S3 so you'd have to transition it using lifecycle rules. An upload client may be easier, given the time that would take.

There are Glacier clients that run on mac, such as Freeze, Glacier Uploader, and others.

Related Topic