better-actor-9266912/17/2019, 12:41 PM
But it doesn't work, however in my stack's yaml file it is set up
from pulumi import Config, export, get_project, get_stack, Output,\ ResourceOptions config = Config(None) compute.Instance(..., zone=config.get('gcp:region') + '-' + zone_matcher.get(count + 1, 'a'), )
When I do
config: gcp:project: some-project gcp:region: europe-west3
it says that 'some-project:gcp:region' is not setup, and this is correct since I only set up secrets on some-projects level. Gcp region is under config key.
How can I get the value of the project's default gcp:region?
error: Missing required configuration variable 'some-project:gcp:region' please set a value using the command `pulumi config set some-project:gcp:region <value>`
white-balloon-20512/17/2019, 3:11 PM
better-actor-9266912/17/2019, 3:15 PM
config: gcp:project: some-project gcp:region: europe-west3 some-project:gcp:region: europe-west3
it just sets the same value
pulumi config set gcp:region europe-west-3
config: gcp:region: europe-west3
gentle-diamond-7014712/17/2019, 4:21 PM
gcp_config = pulumi.Config("gcp") # <---- instance = compute.Instance(..., zone=gcp_config.require("region"), )
better-actor-9266912/17/2019, 4:59 PM
gentle-diamond-7014712/17/2019, 5:41 PM
. I'm not sure that's valid.