I'm setting my Provider config values as the docs ...
# general
q
I'm setting my Provider config values as the docs advise (
gcp:project
,
gcp:region
) Can I now rely on them via something like
project_id = config.require("gcp:project")
? I get an error suggesting I need to set it in my Pulumi project namespace. Is there a way to access these directly w/o duplicating them?
Copy code
$ pulumi config get gcp:region
us-central1
works! But when I try to do the same thing in code, I get
Copy code
Diagnostics:
  pulumi:pulumi:Stack (tokens-secrets-dev):
    error: Missing required configuration variable 'tokens-secrets:gcp:region'
        please set a value using the command `pulumi config set tokens-secrets:gcp:region <value>`
    error: an unhandled error occurred: Program exited with non-zero exit code: 1