imartov
imartov

Reputation: 27

ERROR: (gcloud.functions.deploy) ResponseError: status=[403], code=[Ok], message=[Read access to project 'project-id' was denied]

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:

  1. Authorization in the Google Cloud SDK Shell

  2. 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
    
  3. 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:

roles and permissions for auth account

Here are the roles and permissions that are provided for the Google Cloud Service Account passed in the parameter --service-account :

roles and permissions for 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

Answers (0)

Related Questions