ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: unable to resolve source

前端 未结 3 1343
攒了一身酷
攒了一身酷 2021-02-18 15:07

I am trying to deploy a go 1.11 runtime that used to work, but recently I\'ve been getting: ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: unable to resolve sou

3条回答
  •  心在旅途
    2021-02-18 15:24

    Cloud Build uses a service account instead of your user credential, so adding roles to your user won't help in this case.

    You should be able to manually add the service account, [project-number]@cloudbuild.gserviceaccount.com, back to your account without re-enabling the API. Some users are known to delete random service accounts they don't recognize, which can sometimes cause this issue.

    In summary, check if the service account exists. If so, give it all the roles it needs; if not, then create it and give it all the role it needs.

提交回复
热议问题