From f95bc202deb54cbfa32f43aa69a2f37743fed250 Mon Sep 17 00:00:00 2001 From: Connor Brown Date: Mon, 16 Dec 2024 16:04:22 -0500 Subject: [PATCH] fix(azure): Reorder subnet_addrs networks to create the largest network first. This uses CIDR more efficiently and allows for a /23 to be used for the hub. --- azure/tf/main.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure/tf/main.tf b/azure/tf/main.tf index 65d0376..5b31d03 100644 --- a/azure/tf/main.tf +++ b/azure/tf/main.tf @@ -11,6 +11,10 @@ module "subnet_addrs" { base_cidr_block = var.hub_vnet_cidr networks = [ + { + name = "privatelink" + new_bits = local.privatelink_newbits + }, { name = "firewall" new_bits = local.firewall_newbits @@ -23,10 +27,6 @@ module "subnet_addrs" { name = "webauth-container" new_bits = local.webauth_newbits }, - { - name = "privatelink" - new_bits = local.privatelink_newbits - }, { name = "testvm" new_bits = local.testvm_newbits