Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable storage permission on Google Cloud VM instance

I have a Google Cloud VM instance, but I overlooked setting the Storage permission to read-write when creating it.

Now further down the line, I'm looking to experiment with cloud storage, but my instance is read-only.

How can this be changed? I understand it may be possible by relaxing the storage buckets policy, but I'd prefer my instance had write access to all future project buckets.

I presume there is an option in gcloud to change the devstorage parameter?

Storage disabled

like image 876
mickeywilko Avatar asked Dec 24 '22 17:12

mickeywilko


1 Answers

So, you can't change the option to grant the VM permission, but I did find that you can just run

gcloud auth login

then you can sign in with your management account from the VM and you'll be able to run commands that way.

like image 136
Veritoanimus Avatar answered Feb 01 '23 06:02

Veritoanimus