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)
This commit is contained in:
parent
2a64a00983
commit
db6ec472ef
|
@ -472,6 +472,8 @@ output "rendered" {
|
||||||
|
|
||||||
Then the rendered value would be `goodnight moon!`.
|
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
|
You may use any of the built-in functions in your template. For more
|
||||||
details on template usage, please see the
|
details on template usage, please see the
|
||||||
[template_file documentation](/docs/providers/template/d/file.html).
|
[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:
|
from `count` to give us a parameterized template, unique to each resource instance:
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
variable "count" {
|
|
||||||
default = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "hostnames" {
|
variable "hostnames" {
|
||||||
default = {
|
default = {
|
||||||
"0" = "example1.org"
|
"0" = "example1.org"
|
||||||
|
|
Loading…
Reference in New Issue