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

modern-tent-49484

02/24/2022, 10:18 AM
Why can I do
pulumi config get google-native:region
, but I can't do
config.require("google-native:region")
?
b

bored-table-20691

02/24/2022, 10:26 AM
The configuration is namespaced. So in code you'd ask to get the Google-native namespace and then get the region for it.
m

modern-tent-49484

02/24/2022, 11:01 AM
Copy code
const googleNativeConfig = new Config("google-native");
const region = googleNativeConfig.require("region");
✔️ 1
Like this?
b

bored-table-20691

02/24/2022, 11:34 AM
Yes. I don't know what it looks like in TypeScript but the Go code looks similar.
4 Views