How to set permissions to a Google VM for Cloud Repositories without shutting down the VM

1.3k views Asked by At

I want to give a GCP VM access to Cloud Source Repository but without having to shutdown the VM because I have some processes running. Is this possible or I need to wait until the processes are done, turn off the VM and grant the permissions needed? How can I achieve this? Sorry for the naive question, I'm still learning how to use well GCP products :(.

1

There are 1 answers

5
Donnald Cucharo On BEST ANSWER

You can go to IAM & Admin > IAM and look for the service account used by your Compute Engine instance. If you're using the default service account, this is the format:

[email protected]

Afterwards, click "Edit Member" then select a role and look for "Source". You should be able to see these following roles:

  • Source Repository Administrator
  • Source Repository Writer
  • Source Repository Role

Select which role is best for your use case then hit save.