Reputation: 300
I am using Terraform to deploy my application in GCP Cloud Run. When I try to deploy the app with a specific service account which has roles/run.admin
role set, getting a IAM permission denied for service account <service-account-name>@<project-name>.iam.gserviceaccount.com
error.
I cannot understand why it is denied. There is no specific error for that.
Is there any other permission I need to give to the service account to be able to deploy the app in cloud run?
Thanks
Upvotes: 2
Views: 11099
Reputation: 3311
As per the official documentation, A user needs the following permissions to deploy new Cloud Run services or revisions:
To assign the IAM Service Account User role on the Cloud Run :
gcloud iam service-accounts add-iam-policy-binding \
[email protected] \
--member="PRINCIPAL" \
--role="roles/iam.serviceAccountUser"
Upvotes: 3