How to fix ERROR: (gcloud.functions.deploy) PERMISSION_DENIED: Permission 'run.services.setIamPolicy' denied on resource '

Viewed 32

New to working with GCP and I am running into an issue when trying to deploy a function with the --allow-unauthenticated flag.

It keeps returning the error

ERROR: (gcloud.functions.deploy) PERMISSION_DENIED: Permission 'run.services.setIamPolicy' denied on resource '...

I am an owner on the project and have admin iAm role for both Cloud Functions and Cloud Run, but it still returns this error.

I did find this response here: Permission Denied Error while deploying Gen2 Cloud Function

But was unable to find the setting/role I needed to give myself in order to get this to work.

How can I fix it so this warning doesn't show and I can deploy a function and use the --allow-unauthenticated flag?

1 Answers

From the CLI, after verifying the account was correct, I needed to run

gcloud auth login
Related