this has nothing to do with pulumi it is how GCP SDK works
b
bitter-winter-22829
12/12/2022, 1:31 PM
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
great-sunset-355
12/12/2022, 6:17 PM
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
bitter-winter-22829
12/13/2022, 9:12 AM
thanks for your help, Jan. I will check the methods you mentioned.sparkles purple
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.