terraform.aws-baseline-infra/layers/networking/base-network-experimental/main.tf
2021-01-29 11:22:47 +08:00

21 lines
382 B
HCL

data aws_availability_zones available-az {
state = "available"
}
module "subnet_addrs" {
source = "hashicorp/subnets/cidr"
base_cidr_block = "10.0.0.0/16"
networks = [
for az in data.aws_availability_zones.available-az.names :
{
name = az
new_bits = 8
}
]
}
output module-output {
value = values(module.subnet_addrs.network_cidr_blocks)
}