mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-13 01:00:50 -04: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
213 B
HCL
12 lines
213 B
HCL
output "vpc_id" {
|
|
value = "${aws_vpc.main.id}"
|
|
}
|
|
|
|
output "primary_subnet_id" {
|
|
value = "${module.primary_subnet.subnet_id}"
|
|
}
|
|
|
|
output "secondary_subnet_id" {
|
|
value = "${module.secondary_subnet.subnet_id}"
|
|
}
|