I have a bucket of images on Google Cloud storage. I've set the bucket's access control to uniform and made the bucket public. I'd now like to set the Cache-Control
metadata for the bucket to have a max-age
of one year, rather than the default one hour.
However, I cannot set the metadata for individual objects, since this is a uniform bucket. I simply get
AccessDeniedException: 403 <my email> does not have storage.objects.update access to the Google Cloud Storage object.
Which is expected.
I cannot find an option in the GUI or a command for the cloud shell to set metadata on a uniform bucket, does any one know how, or do I need to switch back to Fine-grained access control?