Running gcloud app deploy and getting PERMISSION_DENIED 'compute.regions.get', despite having Owner and Compute admin permissions

33 views Asked by At

While running gcloud app deploy app.staging.api.yaml - i am getting PERMISSION_DENIED

(gcloud.app.deploy) PERMISSION_DENIED: Request to https://compute.googleapis.com/compute/v1/projects/projects/project-id/regions/europe-central2?key failed, details: Required 'compute.regions.get' permission for 'projects/project-id/regions/europe-central2'

sometimes its not compute.regions.get, but compute.projects.get

permissions for my [email protected]: Roles of the account service

yaml:

runtime: custom
env: flex

service: project-staging-api

service_account: [email protected]

A couple of days ago everything was working, but after some erroneous actions on the part of the API, all account services lost their permissions, or rather they were reset to very limited ones

After that the deployment stopped working, due to the lack of permissions, as it seemed to me... having restored the permissions on the service account that deploys App Engine, nothing has changed

I gave the Owner and most things related to Compute

So I tried to recreate the service account several times and even restored [email protected] App Engine Standard Environment Service Agent

but this doesn't help and permissions are still rejected for compute.regions.get and sometimes for compute.projects.get

0

There are 0 answers