Score:0

issue in a build whith gcloud.run. deploy

ye flag

I tried to build pipeline using GitLab for deploy on Google Cloud.

Everything works fine, except the gcloud command for deploy.

I have the following error : ERROR: (gcloud.run.deploy) PERMISSION_DENIED: Permission 'iam.serviceaccounts.actAs' denied on service account [email protected] (or it may not exist)

I searched for a solution in stack overflow and added 'iam.serviceaccounts.actAs' using gcloud command : gcloud projects add-iam-policy-binding YYYYY --member='serviceAccount:[email protected]' --role='roles/iam.serviceAccountUser'

The role is added to the service account, but the deploy still fail.

Any idea ?

John Hanley avatar
cn flag
What is the new error?
Score:1
cn flag

When you create certain Google Cloud resources, you have the option to attach a service account. The attached service account acts as the identity of any jobs running on the resource, allowing the jobs to authenticate to Google Cloud APIs.

For most Google Cloud services, users need permission to impersonate a service account in order to attach that service account to a resource. This means that the user needs the iam.serviceAccounts.actAs permission on the service account.

I suggest you to follow this path and check if you have implemented all needed to impersonate the service account.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.