21 lines
382 B
HCL
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)
|
|
} |