https://pulumi.com logo
#general
Title
# general
a

able-camera-57198

11/19/2021, 12:00 AM
Is it possible to get the name of the google cloud project configured for the GCP provider? (In general terms: Can I get values from the provider?)
l

little-cartoon-10569

11/19/2021, 1:25 AM
No. You have keep them in your own context / config object.
Provider objects are black boxes.
g

green-school-95910

11/19/2021, 12:20 PM
It should expose the
project
value when you create the Provider yourself. If you are using the default global provider it's properties are available on
gcp.config.*
a

able-camera-57198

11/19/2021, 9:40 PM
What's the equivalent of that in C#?
g

green-school-95910

11/19/2021, 9:51 PM
There is a
Config.Project
Not sure how it would appear in your code (don't know C#, I just went to the same path as the others sdks)