s3 lifecycle transition costs
A customer is planning a large archive from Standard to Glacier and wants to use a lifecycle policy to complete that.
Example: If I have 1,000,000 files in an s3 bucket with standard storage, and apply a lifecycle rule on the bucket so that all of the files transition to S3 Glacier storage...
Do I get charged a one-time "Lifecycle transitions cost" based on 1,000,000 requests (since there are 1,000,000 objects)?
And if so, based on the cost of $0.00005 per glacier lifecycle transition request ($0.05 per 1,000) we would have a one-time charge of ($0.00005 * 1,000,000) $50.00 ?
Yes. Your calculations are correct. The requests are counted on per object basis. However, do not forget to consider the overhead. https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-transition-general-considerations.html
S3 Glacier and S3 Glacier Deep Archive transition request charges— Each object that you transition to the S3 Glacier or S3 Glacier Deep Archive storage class constitutes one transition request. There is a cost for each such request. If you plan to transition a large number of objects, consider the request costs. If you are archiving small objects, consider aggregating many small objects into a smaller number of large objects to reduce transition request costs.
Storage overhead charges – When you transition objects to the S3 Glacier or S3 Glacier Deep Archive storage class, a fixed amount of storage is added to each object to accommodate metadata for managing the object.
For each object archived to S3 Glacier or S3 Glacier Deep Archive, Amazon S3 uses 8 KB of storage for the name of the object and other metadata. Amazon S3 stores this metadata so that you can get a real-time list of your archived objects by using the Amazon S3 API. For more information, see Get Bucket (List Objects). You are charged Amazon S3 Standard rates for this additional storage.
For each object that is archived to S3 Glacier or S3 Glacier Deep Archive, Amazon S3 adds 32 KB of storage for index and related metadata. This extra data is necessary to identify and restore your object. You are charged S3 Glacier or S3 Glacier Deep Archive rates for this additional storage.
Relevant questions
A lambda function to delete old archive files in s3 bucket
asked 3 years agoS3 To Glacier Lifecycle configuration - preventing billing shock
Accepted Answerasked 2 years agoHow to convert MediaStore lifecycle policy to s3 lifecycle rule
asked a month agoHow to use s3 life cycle policy for multiple buckets those starting with some fixed naming ?
asked 10 hours agos3 lifecycle transition costs
Accepted Answerasked 2 years agos3 Glacier Transition
asked 5 months agoS3 lifecycle rule scan charges
Accepted Answerasked 2 years agoNew to AWS, my lifecycle rule seems to not be applied (Versioned bucket)
asked a year agoDoes changing a s3 lifecycle policy change all older objects in an s3 bucket?
asked 2 months agoExpire S3 glacier deep archive using lifecycle management not working
Accepted Answerasked 5 months ago