https://pulumi.com logo
#general
Title
# general
m

many-psychiatrist-74327

05/17/2021, 8:49 PM
👋 hello! I have a question about auth. I have a Pulumi project which creates a bunch of resources in GCP using a service account. Among those, it creates a kubernetes cluster. Then, I want to create k8s resources, but I’m getting a lot of permission errors because pulumi is trying to use the user configured under
gcloud
in the current machine (which makes sense, because I believe the kubeconfig for the clusters defers to the
gcloud
command for auth). Is there a way to explicitly tell pulumi to use the same service account it used for creating the GCP resources? I tried setting
GOOGLE_CREDENTIALS
but the behavior didn’t change. Thanks