https://cloud.google.com/storage/docs/managing-lifecycles#configexamples
I don't see any examples for what I want to do.
I'd like to have a bucket with several folders and have different expirations for each folder. Is this possible or do I just need to use many buckets?
Google Cloud Storage is the object storage service provided by Google Cloud Platform. It offers multiple out-of-the-box features such as high availability, built-in server side encryption, different storage classes, and lifecycle management.
A lifecycle rule includes conditions which an object must meet before the action defined in the rule occurs on the object. Lifecycle rules support the following conditions: age.
Google Drive: Store, manage, and share your personal files. Cloud Storage for Firebase: Manage data for your mobile applications.
Creating the Google Cloud Storage bucket is, as you might have noticed from the previous output (Fig. 3 above), quite simple. Use the command gsutil mb gs://<YOUR_BUCKET_NAME> to create it (Fig. 4).
Lifecyle configuration is only supported at the granularity of a complete bucket.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With