File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ resource "azurerm_mysql_firewall_rule" "firewall" {
88}
99
1010resource "azurerm_mysql_virtual_network_rule" "virtualnetworks" {
11- for_each = var. virtual_networks
11+ for_each = var. subnets
1212 name = " ${ var . project } ${ var . stage } dbfwnet${ each . key } "
1313 resource_group_name = var. resource_group
1414 server_name = azurerm_mysql_server. server . name
Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ variable "allowed_ips" {
8686 default = {}
8787}
8888
89- variable "virtual_networks " {
89+ variable "subnets " {
9090 type = map (string )
91- description = " Maps of prefix => virtual network id that has access to the server"
91+ description = " Maps of prefix => subnet id that has access to the server"
9292 default = {}
9393}
You can’t perform that action at this time.
0 commit comments