hey all, is there a way to get the currently authe...
# google-cloud
p
hey all, is there a way to get the currently authenticated account used by the provider?
f
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
great point, thanks @full-eve-52536!