Difference between revisions of "Terraform data source: data"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
Tested = "true" | Tested = "true" | ||
} | } | ||
+ | } | ||
+ | |||
+ | |||
+ | data "[[aws_vpc]]" "selected" { | ||
+ | id = var.[[vpc_id]] | ||
} | } | ||
Revision as of 17:50, 19 October 2021
- Data sources:
template_file
,template
data
block
Example
data "aws_ami" "myexample" { most_recent = true owners = ["self"] tags = { Name = "app-server" Tested = "true" } }
data "aws_vpc" "selected" { id = var.vpc_id }
Related terms
See also
Advertising: