This message was deleted.
# google-cloud
s
This message was deleted.
g
you need
gcloud auth application-default login
this has nothing to do with pulumi it is how GCP SDK works
b
thanks for your answer, but that command works for user accounts. I am trying to achieve same functionality using service accounts. I can achieve this by setting
GOOGLE_APPLICATION_CREDENTIALS
right now according to the GCP docs, but I am looking for a way to handle it by switching between gcloud configurations.
g
There is no such a thing in GCP yet, But you have 3 another options: 1. impersonate other SAs 2. Store application default credentials 3. Use key files for SAs and handle this with direnv In CI CD environment you'll want to use ODIC provider together with SA impersonation
b
thanks for your help, Jan. I will check the methods you mentioned.sparkles purple