Terraform data source: data
Revision as of 19:43, 4 March 2022 by Welcome (talk | contribs) (Welcome moved page Terraform: Data sources to Terraform data source: data)
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
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
- Terraform, OpenTofu, Terrakube.org, Installation, Terraform AWS, Terraform GCP, Terraform commands, Terraform Cloud, Terraform Enterprise (TFE), HCL, HIL, meta-arguments, providers, modules, resource, provisioners, data sources, backends: remote backends, examples, configuration files, state files, variables, types, Terraform Registry, conditionals:
depends_on
, functions, Blocks, dynamic blocks, errors, Terragrunt, Terraformer, Terratest, Terraform certifications, Terraform map type, Terraform Associate, Terraform: list type,TF_VAR_, TF_LOG
, Terraform provider versioning, Terraform Style Conventions, Required version, Terraform plugin, Terraform Named Values, tags, Changelog,tfsec, tflint
, Operators, Expressions:for, splat
, Debugging, Namespaces, Terraform Landing Zones, CDKTF, Atmos
Advertising: