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?
From the CLI, after verifying the account was correct, I needed to run
gcloud auth login
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.