Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can you set lifecycle policies at the folder/prefix level for google cloud storage buckets?

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?

like image 559
red888 Avatar asked Nov 16 '18 21:11

red888


People also ask

Does Google Cloud Platform provide application lifecycle management?

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.

What is lifecycle policy in GCP?

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.

Which Google Cloud storage service is used for storing buckets and objects?

Google Drive: Store, manage, and share your personal files. Cloud Storage for Firebase: Manage data for your mobile applications.

Which command is used to create a cloud storage bucket in Google Cloud?

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).


1 Answers

Lifecyle configuration is only supported at the granularity of a complete bucket.

like image 156
Mike Schwartz Avatar answered Sep 27 '22 21:09

Mike Schwartz