templatefile - Functions - Configuration Language | Terraform | HashiCorp Developer
The templatefile function reads the file at the given path and renders its content as a template.