mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-03 16:00:57 -05:00
This example demonstrates both creating a network architecture *and* the use of data resources to minimize the number of variables needed for a child module by discovering additional data automatically.
12 lines
185 B
HCL
12 lines
185 B
HCL
variable "vpc_id" {}
|
|
|
|
variable "availability_zone" {}
|
|
|
|
data "aws_availability_zone" "target" {
|
|
name = "${var.availability_zone}"
|
|
}
|
|
|
|
data "aws_vpc" "target" {
|
|
id = "${var.vpc_id}"
|
|
}
|