Hi team, is it not possible to enable object retention for an already created bucket ? I dont seem to find how to enable it using console or cli.
Hello @oreobiskuit ,Welcome on Google Cloud Community.
If I understood documentation correctly, no. If you've created bucket and locked this bucket, you are not able to update this option. You are not able even set object retention for particular object, if object retention is not enabled at bucket level.
cheers,
DamianS
This is frustrating to say the least. We have a 5-6 year old bucket with a large number of files, directories, and services that depend on it. We can't just re-create the bucket in order to enable object-level retention on a few objects. Very disappointing...
@DamianS , this is very disappointing if true. We have a 5-6 year old bucket with a large number of files, directories, and dependent services. We cannot just re-create the bucket to get object retention enabled.
In the meantime the ability to enable object lock on an existing bucket has been added:
https://cloud.google.com/storage/docs/release-notes#October_28_2024