Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

ERROR: (gcloud.sql.instances.create) User [airflow-deploy-svc-account@XXX.iam.gserviceaccount.com] does not have permission to access project XXX #1

Open
kenhglee opened this issue Oct 6, 2019 · 0 comments

Comments

@kenhglee
Copy link

kenhglee commented Oct 6, 2019

Hi!

Thank you for sharing this git repository! While running the "docker-compose -f deploy/gke/docker-compose-gke.yml up" command, I hit upon the above mentioned error complaining there is no access to my current project on the part of the service account.

I went on to check that the service account indeed has the access.

gcloud projects get-iam-policy XXX
--flatten="bindings[].members"
--format='table(bindings.role)'
--filter="bindings.members:airflow-deploy-svc-account@gcp-dpe.iam.gserviceaccount.com"

yields
ROLE
roles/cloudsql.admin (I added this to see if it makes any difference.)
roles/owner

Could you please advise what could it have possibly gone wrong?

@kenhglee kenhglee changed the title ERROR: (gcloud.sql.instances.create) User [airflow-deploy-svc-account@gcp-dpe.iam.gserviceaccount.com] does not have permission to access project XXX ERROR: (gcloud.sql.instances.create) User [airflow-deploy-svc-account@XXX.iam.gserviceaccount.com] does not have permission to access project XXX Oct 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant