Skip to content

Commit

Permalink
fix(azure): Reorder subnet_addrs networks to create the largest netwo…
Browse files Browse the repository at this point in the history
…rk first. This uses CIDR more efficiently and allows for a /23 to be used for the hub.
  • Loading branch information
connorbrown-db committed Dec 16, 2024
1 parent 6783f98 commit f95bc20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions azure/tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f95bc20

Please sign in to comment.