Difference between revisions of "Terraform data source: template file"

From wikieduonline
Jump to navigation Jump to search
m (Welcome moved page Template file to Data sources: template file)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{lowercase}}
+
 
 
* https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file
 
* https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file
  
  
 +
 +
Deprecated in favour of <code>[[templatefile]]</code> [[Terraform functions|function]].
 +
 +
* https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file#template
 +
 +
 +
data "[[template_file]]" "my-secret" {
 +
  template = [[aws_iam_access_key]].my_new_user.encrypted_secret
 +
}
 +
 +
== Related terms ==
 +
* <code>[[Error: Invalid function argument (no file exists)]]</code>
 +
* <code>[[Error: failed to render]]</code>
  
 
== See also ==
 
== See also ==
* {{Terraform}}
+
* {{template_file}}
 +
* {{Terraform data sources}}
 +
* {{terraform aws resources}}
 +
* {{terraform plan}}
 +
 
 +
[[Category:Terraform]]

Latest revision as of 12:46, 4 March 2022

Advertising: