I'm trying to deploy a Cloud Function named generate_image with gcloud functions deploy. Here is the command I am trying:
gcloud functions deploy generate_image \
--gen2 \
--runtime=python310 \
--region=europe-west3 \
--source=. \
--entry-point=generate_image \
--trigger-http \
--allow-unauthenticated
However, I'm encountering the following error:
ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Ok], message=[One or more users named in the policy do not belong to a permitted customer, perhaps due to an organization policy.]
I understand this error indicates an organization policy restricting identities allowed to deploy functions. I've checked my IAM permissions and confirmed I have the necessary roles (I am owner on my project). However, the issue persists.
Can anyone provide insights on how to resolve this error and successfully deploy my Cloud Function?