Deep Learning VM not finding default service account

23 views
Skip to first unread message

Rahil Patel

unread,
Feb 22, 2021, 6:57:20 AM2/22/21
to gce-discussion
Hi,
I am trying to set up a Deep Learning VM instance using my organization's account id, but unfortunately it shows a message saying no default service account found.
When I set up another project using my free credits (which has a different Account ID from previous one), I could see a compute@developer service account already present.
Is there a way to enable this default compute developer service account ?

Fady (Google Cloud Platform)

unread,
Feb 23, 2021, 8:46:14 PM2/23/21
to gce-discussion
If the Compute Engine service account was deleted less than 30 days, you can recover it as per this document. You would need to re-apply the IAM role "Project Editor" on the account. If it is was deleted beyond the period, maybe creating a custom account would work. 

I assume you are referring to the marketplace solution as per this document. It seems that you can not specify a custom service account. To work around it, you may try using the gcloud command in cloudshell as instructed in this document. However, you would need to create a custom service account and give it IAM roles on the project. When executing the command, use this additional flag  "--service-account=service account you created". If you are using an Editor role, it is a good idea to limit API scopes on the instance using --scopes flag also. Here is an explanation about how they work together. Here is also a reference on the gcloud command that might help.

If that seems complex, and if you are just testing the instance, maybe creating a new project under the Organization would be a good alternative. The default Compute Engine service account should be automatically created. I hope this helps. 




Reply all
Reply to author
Forward
0 new messages