mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
0e3256b6f4
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
263 B
HCL
12 lines
263 B
HCL
module "us-east-1" {
|
|
source = "./region"
|
|
region = "us-east-1"
|
|
base_cidr_block = "${var.base_cidr_block}"
|
|
}
|
|
|
|
module "us-west-2" {
|
|
source = "./region"
|
|
region = "us-west-2"
|
|
base_cidr_block = "${var.base_cidr_block}"
|
|
}
|