Skip to content
Open
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
4 changes: 4 additions & 0 deletions modules/connectivity/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ locals {
service_endpoints = try(local.custom_settings.azurerm_subnet["connectivity"][location][subnet.name].service_endpoints, null)
service_endpoint_policy_ids = try(local.custom_settings.azurerm_subnet["connectivity"][location][subnet.name].service_endpoint_policy_ids, null)
delegation = try(local.custom_settings.azurerm_subnet["connectivity"][location][subnet.name].delegation, local.empty_list)
default_outbound_access_enabled = try(local.custom_settings.azurerm_subnet["connectivity"][location][subnet.name].default_outbound_access_enabled, true)
}
)
],
Expand All @@ -444,6 +445,7 @@ locals {
service_endpoints = try(local.custom_settings.azurerm_subnet["connectivity"][location]["GatewaySubnet"].service_endpoints, null)
service_endpoint_policy_ids = try(local.custom_settings.azurerm_subnet["connectivity"][location]["GatewaySubnet"].service_endpoint_policy_ids, null)
delegation = try(local.custom_settings.azurerm_subnet["connectivity"][location]["GatewaySubnet"].delegation, local.empty_list)
default_outbound_access_enabled = try(local.custom_settings.azurerm_subnet["connectivity"][location]["GatewaySubnet"].default_outbound_access_enabled, true)
}
] : local.empty_list,
# Conditionally add Azure Firewall subnet
Expand All @@ -463,6 +465,7 @@ locals {
service_endpoints = try(local.custom_settings.azurerm_subnet["connectivity"][location]["AzureFirewallSubnet"].service_endpoints, null)
service_endpoint_policy_ids = try(local.custom_settings.azurerm_subnet["connectivity"][location]["AzureFirewallSubnet"].service_endpoint_policy_ids, null)
delegation = try(local.custom_settings.azurerm_subnet["connectivity"][location]["AzureFirewallSubnet"].delegation, local.empty_list)
default_outbound_access_enabled = try(local.custom_settings.azurerm_subnet["connectivity"][location]["AzureFirewallSubnet"].default_outbound_access_enabled, true)
}
] : local.empty_list,
# Conditionally add Azure Firewall Management Subnet
Expand All @@ -482,6 +485,7 @@ locals {
service_endpoints = try(local.custom_settings.azurerm_subnet["connectivity"][location]["AzureFirewallManagementSubnet"].service_endpoints, null)
service_endpoint_policy_ids = try(local.custom_settings.azurerm_subnet["connectivity"][location]["AzureFirewallManagementSubnet"].service_endpoint_policy_ids, null)
delegation = try(local.custom_settings.azurerm_subnet["connectivity"][location]["AzureFirewallManagementSubnet"].delegation, local.empty_list)
default_outbound_access_enabled = try(local.custom_settings.azurerm_subnet["connectivity"][location]["AzureFirewallManagementSubnet"].default_outbound_access_enabled, true)
}
] : local.empty_list,

Expand Down
1 change: 1 addition & 0 deletions resources.connectivity.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ resource "azurerm_subnet" "connectivity" {
resource_group_name = each.value.template.resource_group_name
virtual_network_name = each.value.template.virtual_network_name
address_prefixes = each.value.template.address_prefixes
default_outbound_access_enabled = each.value.template.default_outbound_access_enabled

# Optional resource attributes
private_link_service_network_policies_enabled = each.value.template.private_link_service_network_policies_enabled
Expand Down