Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for virtual_router_auto_scale_min_capacity attribute #1861

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ virtual_wans = {

hubs = {
hub_re1 = {
hub_name = "hub-re1"
region = "region1"
hub_address_prefix = "10.0.3.0/24"
deploy_p2s = false
p2s_config = {}
deploy_s2s = false
s2s_config = {}
deploy_er = false
hub_name = "hub-re1"
region = "region1"
hub_address_prefix = "10.0.3.0/24"
virtual_router_auto_scale_min_capacity = 4
deploy_p2s = false
p2s_config = {}
deploy_s2s = false
s2s_config = {}
deploy_er = false
routes = {
route1 = {
address_prefixes = ["10.0.5.0/25"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ resource "azurerm_vpn_server_configuration" "p2s_configuration" {
for_each = can(var.virtual_hub_config.p2s_config.server_config.azure_active_directory_authentication) ? [1] : []
content {
audience = var.virtual_hub_config.p2s_config.server_config.azure_active_directory_authentication.audience
tenant = var.virtual_hub_config.p2s_config.server_config.azure_active_directory_authentication.tenant
issuer = var.virtual_hub_config.p2s_config.server_config.azure_active_directory_authentication.issuer
}
tenant = var.virtual_hub_config.p2s_config.server_config.azure_active_directory_authentication.tenant
issuer = var.virtual_hub_config.p2s_config.server_config.azure_active_directory_authentication.issuer
}
}
}

Expand Down
17 changes: 9 additions & 8 deletions modules/networking/virtual_wan/virtual_hub/virtual_hub.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ resource "azurecaf_name" "vwan_hub" {

## creates a virtual hub in the region
resource "azurerm_virtual_hub" "vwan_hub" {
name = azurecaf_name.vwan_hub.result
resource_group_name = var.resource_group_name
location = var.location
virtual_wan_id = var.vwan_id
sku = try(var.virtual_hub_config.sku, null)
address_prefix = try(var.virtual_hub_config.hub_address_prefix, null)
hub_routing_preference = try(var.virtual_hub_config.hub_routing_preference, null)
tags = local.tags
name = azurecaf_name.vwan_hub.result
resource_group_name = var.resource_group_name
location = var.location
virtual_wan_id = var.vwan_id
sku = try(var.virtual_hub_config.sku, null)
address_prefix = try(var.virtual_hub_config.hub_address_prefix, null)
hub_routing_preference = try(var.virtual_hub_config.hub_routing_preference, null)
virtual_router_auto_scale_min_capacity = try(var.virtual_hub_config.virtual_router_auto_scale_min_capacity, null)
tags = local.tags

dynamic "route" {
for_each = try(var.virtual_hub_config.routes, {})
Expand Down
Loading