Channels
esc
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
policy-as-code
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
general
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#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
!
Post