terraform/website/docs/configuration
Martin Atkins 67d95b97ce lang/funcs: templatefile requires valid variable names
Previously the templatefile function would permit any arbitrary string as
a variable name, but due to the HCL template syntax it would be impossible
to refer to one that isn't a valid HCL identifier without causing an
HCL syntax error.

The HCL syntax errors are correct, but don't really point to the root
cause of the problem. Instead, we'll pre-verify that the variable names
are valid before we even try to render the template, and given a
specialized error message that refers to the vars argument expression as
the problematic part, which will hopefully make the resolution path
clearer for a user encountering this situation.

The syntax error still remains for situations where all of the variable
names are correct but e.g. the user made a typo referring to one, which
makes sense because in that case the problem _is_ inside the template.
2020-02-25 10:19:46 -05:00
..
functions lang/funcs: templatefile requires valid variable names 2020-02-25 10:19:46 -05: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 Use a real resource 2020-01-24 13:47:51 -05: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 Update outputs.html.md 2019-12-17 07:33:11 -05: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 Document for_each key requirements 2020-01-30 17:18:16 -05: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 Fix markdown being misused in docs 2019-12-16 16:29:47 +03: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: document optional syntax for required_providers setting (#23854) 2020-01-14 07:59:18 -05:00
types.html.md website: Further elaboration on the "any" type constraint 2019-06-06 13:31:17 -07:00
variables.html.md website: Remove extra copy of "Getting Started", update links 2020-02-05 14:58:30 -08:00