terraform/website/docs/configuration
Martin Atkins bfbd00a23c website: Note about using jsonencode/yamlencode in templatefile
It's a common source of errors to try to produce JSON or YAML syntax
using string concatenation via our template language but to miss some
details like correct string escaping, quoting, required commas, etc.

The jsonencode and yamlencode functions are a better way to generate JSON
and YAML, but it's not immediately obvious that both of these functions
are available for use in external templates (via templatefile) too.

Given that questions related to this come up a lot in our community forum
and elsewhere, it seems worth having a documentation section to show the
pattern of having a template that consists only of a single function call.
2019-12-11 12:57:01 -08:00
..
functions website: Note about using jsonencode/yamlencode in templatefile 2019-12-11 12:57:01 -08:00
attr-as-blocks.html.md Minor spelling fixes 2019-06-13 15:36:14 +01:00
data-sources.html.md Docs updates for data resources, update expressions ref 2019-07-26 11:22:10 -04:00
expressions.html.md Docs around splat 2019-10-24 16:09:34 -04:00
functions.html.md website: Version notes: Add new -> old links to 0.12 language docs (except function pages) 2019-02-01 17:20:54 -08:00
index.html.md website: Fix typo in the configuration language introduction page 2019-05-08 16:31:37 -07:00
locals.html.md website: Update "Local Values" docs to use v0.12 syntax in example 2019-04-18 09:03:34 -07:00
modules.html.md website: Consistently recommend the required_providers block 2019-10-28 15:56:12 -07:00
outputs.html.md website: Expand output values docs (#20790) 2019-03-22 15:08:55 -07:00
override.html.md website: Version notes: Add new -> old links to 0.12 language docs (except function pages) 2019-02-01 17:20:54 -08:00
providers.html.md website: Consistently recommend the required_providers block 2019-10-28 15:56:12 -07:00
resources.html.md website/docs: replace outdated tag syntax (#23111) 2019-10-24 11:23:17 -04:00
style.html.md website: Version notes: Add new -> old links to 0.12 language docs (except function pages) 2019-02-01 17:20:54 -08:00
syntax-json.html.md vendor: switch to HCL 2.0 in the HCL repository 2019-10-02 15:10:21 -07:00
syntax.html.md Fix link in syntax docs 2019-10-24 11:57:08 -04:00
terraform-enterprise.html.md Remove links to legacy Terraform Enterprise docs 2019-06-07 13:47:12 -04:00
terraform.html.md website: Consistently recommend the required_providers block 2019-10-28 15:56:12 -07:00
types.html.md website: Further elaboration on the "any" type constraint 2019-06-06 13:31:17 -07:00
variables.html.md Merge pull request #22755 from echernyavskiy/patch-1 2019-09-17 11:46:57 -04:00