FEATURES PRICING ABOUT DOCS LOGIN

template_file

Renders a template from a file.

Example Usage

data "template_file" "init" {
    template = "${file("${path.module}/init.tpl")}"

    vars {
        consul_address = "${aws_instance.consul.private_ip}"
    }
}

Argument Reference

The following arguments are supported:

The following arguments are maintained for backwards compatibility and may be removed in a future version:

Attributes Reference

The following attributes are exported:

Template files syntax

The syntax of the template files is documented here, under the “Templates” section.


See the source of this document at Terraform.io

REQUEST A DEMO