File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ locals {
30
30
for pair in flatten ([
31
31
for vnet_name , vnet in var . hub_virtual_networks : [
32
32
for i in range (vnet. firewall . public_ip_count ) : {
33
- key = " ${ vnet_name } -${ i } "
33
+ key = " ${ vnet_name } ${ i == 0 ? " " : " -${ i } " } "
34
34
vnet = vnet
35
35
index = i
36
36
vnet_name = vnet_name
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module "hub_firewalls" {
11
11
enable_telemetry = var. enable_telemetry
12
12
firewall_ip_configuration = concat ([{
13
13
name = each.value.default_ip_configuration.name
14
- public_ip_address_id = module.fw_default_ips[" ${ each . key } -1 " ].public_ip_id
14
+ public_ip_address_id = module.fw_default_ips[each.key].public_ip_id
15
15
subnet_id = module.hub_virtual_network_subnets[" ${ each . key } -${ local . firewall_subnet_name } " ].resource_id
16
16
}], [
17
17
for i in range (1 , each. value . public_ip_count ) : {
You can’t perform that action at this time.
0 commit comments