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" {
8
8
}
9
9
10
10
resource "azurerm_mysql_virtual_network_rule" "virtualnetworks" {
11
- for_each = var. virtual_networks
11
+ for_each = var. subnets
12
12
name = " ${ var . project } ${ var . stage } dbfwnet${ each . key } "
13
13
resource_group_name = var. resource_group
14
14
server_name = azurerm_mysql_server. server . name
Original file line number Diff line number Diff line change @@ -86,8 +86,8 @@ variable "allowed_ips" {
86
86
default = {}
87
87
}
88
88
89
- variable "virtual_networks " {
89
+ variable "subnets " {
90
90
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"
92
92
default = {}
93
93
}
You can’t perform that action at this time.
0 commit comments