terraform/website/layouts
Martin Atkins c753df6a93 lang/funcs: templatefile function
This function is similar to the template_file data source offered by the
template provider, but having it built in to the language makes it more
convenient to use, allowing templates to be rendered from files anywhere
an inline template would normally be allowed:

    user_data = templatefile("${path.module}/userdata.tmpl", {
      hostname = format("petserver%02d", count.index)
    })

Unlike the template_file data source, this function allows values of any
type in its variables map, passing them through verbatim to the template.
Its tighter integration with Terraform also allows it to return better
error messages with source location information from the template itself.

The template_file data source was originally created to work around the
fact that HIL didn't have any support for map values at the time, and
even once map support was added it wasn't very usable. With HCL2
expressions, there's little reason left to use a data source to render
a template; the only remaining reason left to use template_file is to
render a template that is constructed dynamically during the Terraform
run, which is a very rare need.
2018-12-21 08:06:14 -08:00
..
backend-types.erb Implement the Enterprise enhanced remote backend 2018-08-03 22:22:55 +02:00
commands-state.erb website: new filesystem layout for core/provider split 2017-06-13 11:25:32 -07:00
commands-workspace.erb fix broken/old link in Commands/Workspace 2017-08-01 17:49:32 -05:00
docs.erb website: Structural edit of configuration language docs 2018-12-20 14:20:42 -08:00
downloads.erb add 0.12 guide 2018-06-25 17:26:45 -07:00
functions.erb lang/funcs: templatefile function 2018-12-21 08:06:14 -08:00
guides.erb Initial draft of Core Workflow Guide 2018-08-17 17:18:53 -05:00
intro.erb website: new filesystem layout for core/provider split 2017-06-13 11:25:32 -07:00
registry.erb Add back Support page with info about getting help. 2017-09-15 22:59:03 +01:00
terraform.erb provider/terraform: reorganize for merge into core 2017-11-02 10:46:31 -07:00