Difference between revisions of "Terraform data source: template file"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
* https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file#template | * 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 == | == Related terms == |
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: