From 0c9e95a32fc22b9f86246aad8e23a27b961d34d9 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 13 May 2015 20:22:14 -0700 Subject: [PATCH] website: note that interpolations can be escaped --- website/source/docs/configuration/interpolation.html.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/source/docs/configuration/interpolation.html.md b/website/source/docs/configuration/interpolation.html.md index fa2e75680..5c3ce791d 100644 --- a/website/source/docs/configuration/interpolation.html.md +++ b/website/source/docs/configuration/interpolation.html.md @@ -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)`