It's not quite clear to me how to use config defau...
# getting-started
m
It's not quite clear to me how to use config default values. I have a pulumi.yaml file with the following for example:
Copy code
name: infra
runtime:
  name: nodejs
  options:
    packagemanager: pnpm
description: kubernetes cluster setup hosted on Hetzner with Cloudflare as DNS manager
config:
  pulumi:tags:
    value:
      pulumi:template: typescript
  cloudflare.zoneId:
    type: string
    description: Cloudflare zone id for the main domain of your k8s cluster. to get it open the dashboard -> click on your website -> scroll down -> look for API and Zone ID on the right
    default: zone id
but if I try to run pulumi up after creating a stack called
main
it says
Copy code
Missing required configuration variable 'infra:cloudflare.zoneId'
        please set a value using the command `pulumi config set infra:cloudflare.zoneId <value>`
why is it not picking up the default value for that config since it should be project wide available?
m
I use this in TS so its' a bit different but I believe its' actually 'pulumiConfig', not 'config'
in a TS yaml, its' like this for us (probably same thing:
Copy code
config:
  aws:region: us-east-1
now... when we do something like this:
Copy code
environment:
  - shared-tools-base
that ESC env needs to look like this:
Copy code
values:
  pulumiConfig:
    shared-tools: inherited
for us to use getConfig.sharedTools
Try using this: https://app.pulumi.com/[YOUR_ORG]/esc and just using the 'environment' tag in YAML. It's not different, but a nice CAAS feature. Also... you may want to go up and edit this to [REDACTED]: cc @modern-monkey-83417
Copy code
description: Cloudflare zone id for the main domain of your k8s cluster. to get it open the dashboard -> click on your website -> scroll down -> look for API and Zone ID on the right
    default: [REDACTED]