terraform-aws-vpc icon indicating copy to clipboard operation
terraform-aws-vpc copied to clipboard

support cloudwan core network subnets

Open drewmullen opened this issue 3 years ago • 1 comments

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
    }
  }
}

drewmullen avatar Jun 06 '22 14:06 drewmullen

Impossible - do not allow:

      route_to_nat             = true
      route_to_core_network = ["0.0.0.0/0"]

drewmullen avatar Jun 07 '22 16:06 drewmullen

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)

pablo19sc avatar Oct 23 '22 12:10 pablo19sc