Skip to content

Commit

Permalink
FIX - Private DNS Link - Adding a new subnet to existing vnet does no…
Browse files Browse the repository at this point in the history
…t destroy and recreate the vnet links (#37)
  • Loading branch information
LaurentLesle authored Sep 25, 2020
1 parent 58ebaf5 commit dd82d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/networking/private-dns/virtual_network_link.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ resource "azurerm_private_dns_zone_virtual_network_link" "vnet_links" {
name = each.value.name
resource_group_name = var.resource_group_name
private_dns_zone_name = azurerm_private_dns_zone.private_dns.name
virtual_network_id = try(var.vnets[each.value.vnet_key].id, data.terraform_remote_state.vnet_links[each.key].outputs[each.value.remote_tfstate.output_key][each.value.remote_tfstate.lz_key][each.value.remote_tfstate.vnet_key].id)
virtual_network_id = try(each.value.remote_tfstate, null) == null ? var.vnets[each.value.vnet_key].id : data.terraform_remote_state.vnet_links[each.key].outputs[each.value.remote_tfstate.output_key][each.value.remote_tfstate.lz_key][each.value.vnet_key].id
}

0 comments on commit dd82d0b

Please sign in to comment.