terraform ternary code example
Example: terraform ternary
# <condition> ? <val_if_true> : <val_if_false>
# Example
myResourceField = var.a =! "foo" ? "hello" : "world"
# if var.a doesn't equal "foo", myResourceField will be set to "hello",
# else it will be set to "world".