Difference between revisions of "Terraform functions: templatefile"

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
  [[config.tftpl]]
 
  [[config.tftpl]]
 
   
 
   
  %{ for config_key, config_value in config }
+
  %{ [[for]] config_key, config_value in config }
 
  set ${config_key} = ${config_value}
 
  set ${config_key} = ${config_value}
  %{ endfor ~}
+
  %{ [[endfor]] ~}
 +
 
 +
 
 +
  [[user_data]]                  = templatefile("${[[path.module]]}/assets/your_instance_data[[.tftpl]]", {})
  
 
== Related ==
 
== Related ==
 
* <code>[[*.tftpl]]</code>
 
* <code>[[*.tftpl]]</code>
 
* [[Terraform functions: file]]
 
* [[Terraform functions: file]]
* [[Terraform map type|map]]
+
* <code>[[Terraform map type|map]]</code>
 
* [[Terraform provider: template (Deprecated)]]
 
* [[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 ==
 +
* {{user_data}}
 
* {{terraform functions}}
 
* {{terraform functions}}
* {{Terraform changelog}}
+
* {{Templates}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 12:39, 8 July 2024

Advertising: