Skip to content

Commit

Permalink
Merge pull request #6 from schubergphilis/add_private_link_service_ne…
Browse files Browse the repository at this point in the history
…twork_policies_enabled

feat: add private_link_service_network_policies_enabled variable
  • Loading branch information
Dennisvandermeulen authored Oct 24, 2024
2 parents c8dae5b + 2758152 commit 5e7daf7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ resource "azurerm_virtual_network" "this" {
resource "azurerm_subnet" "this" {
for_each = var.subnets

name = each.value.name != null ? each.value.name : each.key
resource_group_name = azurerm_virtual_network.this.resource_group_name
default_outbound_access_enabled = each.value.default_outbound_access_enabled
virtual_network_name = azurerm_virtual_network.this.name
address_prefixes = each.value.address_prefixes
name = each.value.name != null ? each.value.name : each.key
resource_group_name = azurerm_virtual_network.this.resource_group_name
default_outbound_access_enabled = each.value.default_outbound_access_enabled
virtual_network_name = azurerm_virtual_network.this.name
address_prefixes = each.value.address_prefixes
private_link_service_network_policies_enabled = each.value.private_link_service_network_policies_enabled != null ? each.value.private_link_service_network_policies_enabled : true

dynamic "delegation" {
for_each = each.value.delegate_to != null ? [each.value.delegate_to] : []
Expand Down

0 comments on commit 5e7daf7

Please sign in to comment.