Terraform: Data Sources > template_file

template_file renders a template from a file.

Use it with a fileor inline. E.g.


file refers to a file path in the current directory.

and ip_address is set to a value which can be read in the template using ${ip_address}.


Note: see also Terraform: Data Sources

and https://www.terraform.io/docs/providers/template/d/file.html#

Leave a Reply

Your email address will not be published. Required fields are marked *