Difference between revisions of "Terraform data sources"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
− | [[data]] "aws_ami" "example" { | + | [[data]] "[[aws_ami]]" "example" { |
most_recent = true | most_recent = true | ||
Revision as of 11:33, 27 February 2023
Terraform data sources are available since 2016.
- https://www.terraform.io/language/data-sources
- https://www.terraform.io/docs/language/data-sources/index.html
data "aws_ami" "example" { most_recent = true owners = ["self"] tags = { Name = "app-server" Tested = "true" } }
TO_MERGE: Terraform: Data sources
aws_caller_identity
:data "aws_caller_identity" "current" {}
aws_availability_zones
aws_ami
aws_iam_policy_document
aws_vpc
aws_region
:data "aws_region" "current" {}
aws_subnet
aws_subnet_ids
aws_subnets
aws_s3_bucket
aws_ebs_snapshot
Related
See also
Advertising: