Is it possible to set a 'defaul't or 'fallback' va...
# yaml
g
Is it possible to set a 'defaul't or 'fallback' value to a variable in pulumi yaml? Similar to
${myvar:-fallbackvalue}
in bash
Alternatively, is interpolation (using variables) supported in stack config files? e.g.
Copy code
# Pulumi.mystack.yaml
config:
  myvar: myvalue
  myvar2: "something-${myvar}"
a
I don’t believe fallback values are possible for variables. If you are getting your values from
confg
, that does support a
default
argument: https://www.pulumi.com/docs/concepts/projects/project-file/#schemas.