https://pulumi.com logo
#google-cloud
Title
# google-cloud
p

prehistoric-pizza-96832

09/27/2023, 8:22 PM
hey all, is there a way to get the currently authenticated account used by the provider?
f

full-eve-52536

09/27/2023, 8:32 PM
Hey Benny. There may be a few ways depending on how you set your credentials. If you are using a service account in combination with
gcp:credentials
, then you can simply read in
gcp:credentials
and parse that JSON for the user id.
p

prehistoric-pizza-96832

09/28/2023, 3:29 AM
great point, thanks @full-eve-52536!