From db6ec472ef4b57b63577b263671bca622c8f8581 Mon Sep 17 00:00:00 2001 From: Lars Francke Date: Wed, 10 Oct 2018 22:22:19 +0200 Subject: [PATCH] website: Fix documentation glitch and add note about double "$" 1. The double "$" in the template confuses readers 2. As far as I can tell the variable "count" is not used either in this example (it is in the next example though) --- website/docs/configuration-0-11/interpolation.html.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/website/docs/configuration-0-11/interpolation.html.md b/website/docs/configuration-0-11/interpolation.html.md index c43e72582..e4cef7473 100644 --- a/website/docs/configuration-0-11/interpolation.html.md +++ b/website/docs/configuration-0-11/interpolation.html.md @@ -472,6 +472,8 @@ output "rendered" { Then the rendered value would be `goodnight moon!`. +Note that the double dollar signs (`$$`) are needed in inline templates. Otherwise Terraform will return an error. + You may use any of the built-in functions in your template. For more details on template usage, please see the [template_file documentation](/docs/providers/template/d/file.html). @@ -482,10 +484,6 @@ Here is an example that combines the capabilities of templates with the interpol from `count` to give us a parameterized template, unique to each resource instance: ```hcl -variable "count" { - default = 2 -} - variable "hostnames" { default = { "0" = "example1.org"