https://pulumi.com logo
h

hallowed-rain-9096

07/10/2020, 5:39 PM
is
new Config("gcp").Require("project")
a reasonable way to grab the project id out of config when needed? Are there downsides to this approach?
f

faint-table-42725

07/10/2020, 6:09 PM
Generally speaking, provider config should be available through the ‘config’ module of any given provider, e.g.
Gcp.Config.Project
should be “just there”, so you can always use that as a shorthand. There’s also nothing wrong w/ your approach of explicitly reading from the config itself.
h

hallowed-rain-9096

07/10/2020, 7:24 PM
that's super helpful, thank you!