terraform-aws-vpc
terraform-aws-vpc copied to clipboard
support cloudwan core network subnets
module "vpc" {
source = "aws-ia/vpc/aws"
version = ">= 1.0.0"
name = "tgw"
cidr_block = "10.0.0.0/16"
az_count = 2
subnets = {
public = {
netmask = 24
nat_gateway_configuration = "single_az"
route_to_core_network = ["10.0.0.0/8"]
}
private = {
netmask = 24
route_to_nat = true
route_to_core_network = ["10.0.0.0/8"]
}
core_network = {
netmask = 28
core_network_id = awscc_networkmanager_core_network.example.id
route_to_nat = false
ipv6_support = true
}
}
}
Impossible - do not allow:
route_to_nat = true
route_to_core_network = ["0.0.0.0/0"]
Created here: https://github.com/aws-ia/terraform-aws-vpc/pull/92. Need to add the tests in the PR (to do in the following days)