Difference between revisions of "Terraform functions: templatefile"

From wikieduonline
Jump to navigation Jump to search
(Created page with "* <code>templatefile</code> https://www.terraform.io/docs/language/functions/templatefile.html == See also == * {{Terraform}}")
 
 
(25 intermediate revisions by 3 users not shown)
Line 1: Line 1:
* <code>[[templatefile]]</code> https://www.terraform.io/docs/language/functions/templatefile.html
+
<code>[[templatefile]]</code> https://www.terraform.io/docs/language/functions/templatefile.html
  
 +
* [[List]]
 +
* [[Terraform maps|Maps]]
  
 +
== Official example ==
 +
 +
[[config.tftpl]]
 +
 +
%{ [[for]] config_key, config_value in config }
 +
set ${config_key} = ${config_value}
 +
%{ [[endfor]] ~}
 +
 +
 +
  [[user_data]]                  = templatefile("${[[path.module]]}/assets/your_instance_data[[.tftpl]]", {})
 +
 +
== Related ==
 +
* <code>[[*.tftpl]]</code>
 +
* [[Terraform functions: file]]
 +
* <code>[[Terraform map type|map]]</code>
 +
* [[Terraform provider: template (Deprecated)]]
 +
* <code>[[user_data]]</code>
 +
* <code>[[path.module]]</code>
 +
* <code>[[/etc/ecs/ecs.config]]</code>
 +
* <code>[[argocd_values.tftpl]]</code>
  
 
== See also ==
 
== See also ==
* {{Terraform}}
+
* {{user_data}}
 +
* {{terraform functions}}
 +
* {{Templates}}
 +
 
 +
[[Category:Terraform]]

Latest revision as of 12:39, 8 July 2024

Advertising: