Terraform templatefile vs template_file: Which One To Use

Terraform templatefile vs template_file: Which One To Use

August 3, 2022
Tags:
terraform

Covers the 2 similarly named templatefile vs template_file and walks through a demo of both.

Summary

  • template_file is a data source. No longer recommended by Hashicorp.
  • templatefile is a built-in function. More powerful and cleaner syntax. Use this one.

Related inks:

Terraspace Install Guides
8m

Terraspace Terrafile
29m

Terraspace and Terragrunt
19m

Terraspace OnPrem
16m

Terraspace Testing
47m

Get full access to these great resources

All for less than the price of coffee a day

44 courses
286 lessons
46+ hours

Get started with BoltOps Learn now and get access to easy and powerful lessons

BoltOps Tools