https://pulumi.com logo
Title
p

polite-sandwich-68547

04/27/2023, 1:21 PM
how do you extract values from the main
Pulumi.yaml
? I can get values from the
Pulumi.stack.yaml
using
config.Require()
e

echoing-dinner-19531

04/27/2023, 2:57 PM
Do you mean config values? They get merged into the values from the stack.yaml and so should also be readable via things like
config.Require()
s

salmon-account-74572

04/27/2023, 3:51 PM
And there’s a
pulumi.getProject()
method you can use to get the project name.
p

polite-sandwich-68547

05/04/2023, 2:14 PM
thank you guys! ❤️
@salmon-account-74572 where do you see getproject in the api? https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3@v3.65.1/go/pulumi
s

salmon-account-74572

05/10/2023, 3:10 PM
(And there’s also
Organization()
and
Stack()
, in case you need those as well.)
p

polite-sandwich-68547

05/11/2023, 7:17 AM
thank you @salmon-account-74572! ❤️
s

salmon-account-74572

05/11/2023, 3:23 PM
Happy to help!