website: note that interpolations can be escaped

This commit is contained in:
Mitchell Hashimoto 2015-05-13 20:22:14 -07:00
parent 77a61157fb
commit 0c9e95a32f
1 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,9 @@ variables, attributes of resources, call functions, etc.
You can also perform simple math in interpolations, allowing
you to write expressions such as `${count.index+1}`.
You can escape interpolation with double dollar signs: `$${foo}`
will be rendered as a literal `${foo}`.
## Available Variables
**To reference user variables**, use the `var.` prefix followed by the
@ -123,7 +126,7 @@ The supported built-in functions are:
* `split(delim, string)` - Splits the string previously created by `join`
back into a list. This is useful for pushing lists through module
outputs since they currently only support string values. Depending on the
use, the string this is being performed within may need to be wrapped
use, the string this is being performed within may need to be wrapped
in brackets to indicate that the output is actually a list, e.g.
`a_resource_param = ["${split(",", var.CSV_STRING)}"]`.
Example: `split(",", module.amod.server_ids)`