Difference between revisions of "Terraform data source: data"
Jump to navigation
Jump to search
↑ https://www.hashicorp.com/blog/terraform-aws-provider-4-0-refactors-s3-bucket-resource
Line 38: | Line 38: | ||
* [[Terraform: plural data source]] | * [[Terraform: plural data source]] | ||
* <code>[[data.]]</code> | * <code>[[data.]]</code> | ||
+ | * [[Terraform: provider]], [[Terraform: resource]] | ||
== See also == | == See also == |
Revision as of 19:44, 4 March 2022
Available since 2016
TOMERGE: Terraform data sources
- Terraform AWS data sources (more than 300)[1]
- Data sources:
template_file
,template
data
block
Example
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami
data "aws_ami" "myexample" { most_recent = true owners = ["self"] tags = { Name = "app-server" Tested = "true" } }
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/vpc
data "aws_vpc" "selected" { id = var.my_vpc_id }
data "template_file" "my-secret" { template = aws_iam_access_key.my_new_user.encrypted_secret }
Related terms
- Terraform AWS
- Terraform: output
- Terraform: plural data source
data.
- Terraform: provider, Terraform: resource
See also
- AWS Data sources:
aws_region
,aws_vpc
,aws_caller_identity
,aws_availability_zones
,aws_eip
,aws_flow_log
,template_file, aws_ami
- 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
Advertising: