Skip to content

Commit

Permalink
updated (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
satenderrathee authored Jul 13, 2023
1 parent 9bcefca commit 22ab206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/modules/azurerm-sql/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ resource "azurerm_mssql_server" "example" {

#Adding Sql Network Rules
resource "azurerm_mssql_firewall_rule" "example_fw_rule" {
for_each = { for i in var.sql_fw_rules : i.name => i if var.public_network_access_enabled == false }
for_each = { for i in var.sql_fw_rules : i.name => i if var.public_network_access_enabled == true }
name = each.key
server_id = azurerm_mssql_server.example.id
start_ip_address = each.value.start_ip_address
Expand Down

0 comments on commit 22ab206

Please sign in to comment.