Learn how to automatically change an object's storage class based on file age.
Contributed by the Google Cloud community. Not official Google documentation.
Changing the storage class of older, less frequently accessed data can significantly reduce storage costs. In this tutorial, you configure a bucket lifecycle to do this automatically.
Before you begin
Before starting this tutorial, ensure that you have created a bucket and uploaded some data to it. The Cloud Storage quickstart tutorial can help with this if you are unsure.
Storage costs vary by volume of data and storage class. You can use the pricing calculator to estimate the cost of using various storage classes.
Note that Nearline Storage and Coldline Storage classes have cheaper storage costs, but both have data retrieval charges. If your data is frequently accessed, it may be cheaper to keep it in the Standard Storage class.
Add a lifecycle rule to automatically change the storage class