Difference between revisions of "Terraform data source: template file"
Jump to navigation
Jump to search
(13 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
+ | |||
+ | 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]] | [[Category:Terraform]] |
Latest revision as of 12:46, 4 March 2022
Deprecated in favour of templatefile
function.
data "template_file" "my-secret" { template = aws_iam_access_key.my_new_user.encrypted_secret }
Related terms[edit]
See also[edit]
- Terraform data source: template file
- Terraform data sources:
aws_vpc
,template_file
,aws_subnet_ids
,terraform remote state
,aws_eks_cluster
,aws_ami, aws_availability_zones, aws_partition, archive_file
- Terraform AWS resources: IAM, Net, EC2, ECS, ECR, S3, Route53, ACM, CloudWatch, CloudFront SES, RDS, DLM
terraform plan
: [-refresh-only | -lock=false
|-target
|-var-file
|will be created
|--help
], Terraform plan errors, Terraform plan examples, Terraform plan execution errors, (known after apply)
Advertising: