mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-07 19:01:55 -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.
8 lines
201 B
HCL
8 lines
201 B
HCL
resource "aws_vpc" "main" {
|
|
cidr_block = "${cidrsubnet(var.base_cidr_block, 4, lookup(var.region_numbers, var.region))}"
|
|
}
|
|
|
|
resource "aws_internet_gateway" "main" {
|
|
vpc_id = "${aws_vpc.main.id}"
|
|
}
|