Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

GCP Storage bucket with Lifecycle policy change cost estimate

Hi,

We have a single region storage bucket with an Object Lifecycle Management. The lifecycle policy moves the objects to coldline storage after lets say X days. We would like to update this policy to move the objects to archive storage after the same X days - so in short we are only changing/updating the action part of the lifecycle policy. We would like to know what will be the total cost of this change. Based on the documentation here - link it seems the only cost for this would be for SetStorageClass for all the objects in the bucket and there should be no other fees e.g. retrieval fees, early deletion fees etc.

Lets say the number of objects in the bucket is 100 million. Are the below estimates correct for the lifecycle change:

Class A operation cost (based on destination archive storage class) :: $0.05 per 1000 operations.

Total cost = 100  *  1000000  *  5  /  1000 = 5000 USD

Also, just to double check, once the lifecycle policy starts to update the objects, no charges should apply on the actual object storage class transition as well?

 

 

2 4 1,589
4 REPLIES 4

Hi @tickoon,

Welcome to Google Cloud Community!

There are many factors that would determine how much you will be charged for the use of Google Cloud Storage. Please be advised that these are just estimates and may not reflect your final billing.

  1. Data storage pricing differs from region to region. If you're using 2 or more regions, pricing would be different than using a single region. Please check this table as your reference.
  2. You could still be billed as mentioned in these sample scenarios:
    • For example, say you upload an object as Nearline storage, and 20 days later your lifecycle configuration changes the storage class of the object to Coldline storage. This change incurs no retrieval or early deletion fees. If you then delete the object 60 days after the storage class change, there is only a 10-day early deletion charge, since Coldline storage has a 90-day minimum storage duration, and the object existed for a total of 80 days.

    • In comparison, say you upload an object as Nearline storage, and 20 days later change the storage class using a rewrite (again to Coldline storage). This change incurs both a retrieval fee and a 10-day early deletion charge. If you then delete the object 60 days after the rewrite, there is a 30-day early deletion charge.

  3. Please check this documentation on Cloud Storage pricing and pricing calculator for your reference.

You may also reach out to our billing support for proper explanation of each of your charges when using Cloud Storage.

Hope this helps.

Hi,

I would be happy to provide more details to get an answer to this. The way cloud storage billing works any under-estimation of operations can cause the bill to double to triple and we have a billions of storage objects in the bucket where we want to apply this change. 

For our situation, the storage bucket is in a single bucket, no versioning is enabled. We want to only update the lifecycle managment policy to transition objects to archive (right now the policy is transition object to coldline) rest of the conditions remain the same. From the documentation it seems this should only cost us SetStorageClass on destination storage class for the number of objects impacted. I just want to make sure there are no other charges e.g. rewrite/early deletion/list etc etc. and the calculations in the original post are accurate.  

Please let me know. An accurate cost estimate would be great to have. 

 

@robertcarlos : are you able to look into this further and provide a confirmed answer? 

Hi @tickoon,

We could only provide the estimated cost depending on your usage as we don't have the proper tools or means on providing "accurate cost estimate" as final prices may change depending on several circumstances indicated in Google Cloud's Terms of Service:

(b) To the Agreement. Google may make changes to this Agreement (including the URL Terms) and pricing from time to time. Unless otherwise noted by Google, material changes to the Agreement will become effective 30 days after they are posted, except to the extent the changes apply to new functionality or the Cloud Data Processing Addendum, or are required by applicable law, in which case they will be effective immediately. Google will provide at least 90 days' advance notice for materially adverse changes to any SLAs by (i) sending an email to the Notification Email Address; (ii) posting a notice in the Admin Console; or (iii) posting a notice to the applicable SLA webpage. If Customer does not agree to the revised Agreement, Customer may stop using the Services. Customer may also terminate this Agreement for convenience under Section 8.4 (Termination for Convenience). Customer's continued use of the Services after such material change will constitute Customer's consent to such changes. Google will post any modification to this Agreement to https://cloud.google.com/terms/.

It is also suggested at the bottom of Cloud Storage pricing to reach out to sales support team so that they could provide custom quote or pay only for the services that you will use.

Hope this helps.