Search code examples
google-cloud-platformgcloud

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


Solution

  • You can update the permissions of your VM instance now but only when it is shut down. Check the following documentation:

    Changing the service account and access scopes for an instance

    If you want to update the API permissions for the kuberntes clusters VM instance then you cannot do that unless you create a new cluster and give the API access to the nodes associated with the clusters.