Understanding statement in a yaml file env-supported: ${ENV|dev=true:false}

Viewed 12

As part of our ci/cd, we have a config file like

name: ${CDSENV}-volume-action
type: function
region: ${LAMBDA_REGION:${REGION}}
env-supported: ${ENV|dev=true:false}
...

The final line of this is confusing me... ${ENV|dev=true:false}

I know that this evaluates to true if ENV is 'dev', and false otherwise, but I can't find what this type of statement is called, and I get an error when I try and run it in my terminal. I cant find documentation on any kind of parameter expansion that relies on a | as an evaluator.

Any help is appreciated.

0 Answers
Related