Skip to content

Commit

Permalink
fix for_each
Browse files Browse the repository at this point in the history
  • Loading branch information
CalleB3 committed Nov 19, 2024
1 parent 6f58435 commit b347365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/azure/core/nsg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ resource "azurerm_network_security_rule" "this" {
source_address_prefix = each.value.rule_source_address_prefix
destination_address_prefix = each.value.rule_destination_address_prefix
resource_group_name = data.azurerm_resource_group.this.name
network_security_group_name = azurerm_network_security_group.this[data.azurecaf_name.azurerm_network_security_group_this[each.value.subnet_full_name].result].name
network_security_group_name = azurerm_network_security_group.this[each.key].name
}

0 comments on commit b347365

Please sign in to comment.