Ravi Sir's Cards › AWS
Default values
This revision card explains Default values. It starts from the need that use default if empty. It describes set default too. The how-to section notes stop if missing. An example on the card is value only if set.
Read card text
What this card says
Why do we need it?
Use default if empty.
${env:-dev}
What is it?
Set default too.
${port:=8080}
How to do it
Stop if missing.
${target:?missing}
Example
Value only if set.
${debug:+-v}