https://pulumi.com logo
#yaml
Title
# yaml
g

gifted-gigabyte-53859

12/21/2023, 4:30 AM
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

ancient-policeman-24615

12/28/2023, 3:49 PM
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.