gifted-gigabyte-53859
11/14/2023, 8:10 AM# Pulumi.develop.yaml
config:
myproject:myvar: false
# Pulumi.yaml
resources:
myresource:
options:
protect: ${pulumi.stack}.${myvar}
properties:
...
The above gives an error
error: failed to discover plugin requirements:
-error: Pulumi.yaml:71,16-42: protect must be a boolean value;
If I try to force it:
options:
protect: !!bool ${pulumi.stack}.${myvar}
It doesn't work:
error: could not unmarshal '.../Pulumi.yaml': invalid YAML file: yaml: cannot decode !!str `${pulumi.stack}.${protect_dynamodb_tables}` as a !!bool
I also tried passing it through the variables:
section in Pulumi.yaml
# Pulumi.yaml
...
variables:
varProtectTablesAsBool:
type: bool
value: ${pulumi.stack}.${protect_dynamodb_tables} # tried both with !!bool and without
Still doesn't work, giving the first error protect must be a boolean value;
echoing-dinner-19531
11/15/2023, 8:28 AM