Reputation: 27
I use Google Cloud Platform\Console for work.
In my work, I use Google Cloud Functions and the command gcloud functions deploy
.
I didn't have a problem with this for a while ago, but today I ran into the following problem:
ERROR: (gcloud.functions.deploy) ResponseError: status=[403], code=[Ok], message=[Read access to project 'project-id' was denied]
So, the steps that I follow are:
Authorization in the Google Cloud SDK Shell
Entering a command:
gcloud functions deploy cloud-function-name --gen2 --concurrency=1000 --memory=4G --timeout=3600 --source=. --entry-point=entry_point --region africa-south1 --runtime python312 --min-instances 0 --max-instances 5 --trigger-http --env-vars-file .env.yaml --service-account service-account-name.com --update-labels name=label-name
I get an error in response:
ERROR: (gcloud.functions.deploy) ResponseError: status=[403], code=[Ok], message=[Read access to project 'project-id' was denied]
Here are the permissions and roles of the account under which I am logged into the Google Cloud SDK Shell:
Here are the roles and permissions that are provided for the Google Cloud Service Account passed in the parameter --service-account
:
There are similar problems, the solution to which is to provide the Cloud Functions Developer role, but such a role already exists on two accounts.
Please help me, what is the problem and how to solve it?
Thanks!
Upvotes: 0
Views: 344