handsome-truck-95168
12/17/2019, 8:00 PMdefault
values in the Pulumi.yaml
? They seem to be not working but I imagine I'm doing it wrong.default
values for some of my configuration variables, but when I deploy a stack my script complains that those configuration values with defaults are missing.white-balloon-205
template:
section as below?
name: aws-go-s3-folder
runtime: go
description: A static website hosted on AWS S3
template:
config:
aws:region:
description: The AWS region to deploy into
default: us-west-2
That is only used by templates currently (pulumi new
), it is not project level configuration. We are considering proving a way to provide declarative project config (see for example https://github.com/pulumi/pulumi/issues/1052#issuecomment-374255486). But today, project level config defaults should be added to the code with something like config.get("something") || "defaultValue"
.handsome-truck-95168
12/17/2019, 8:04 PMwhite-balloon-205
template
section is missing from the docs at https://www.pulumi.com/docs/intro/concepts/project/ and should be added there.handsome-truck-95168
12/17/2019, 8:05 PMpulumi up
with a new stack