Skip to content

Commit

Permalink
fix external gateway (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoo committed Feb 27, 2023
1 parent bdbad15 commit e098568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/net-vpn-ha/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ resource "google_compute_vpn_tunnel" "tunnels" {
name = "${var.name}-${each.key}"
router = local.router
peer_external_gateway = try(
google_compute_external_vpn_gateway.external_gateway[each.value.peer_gateway],
google_compute_external_vpn_gateway.external_gateway[each.value.peer_gateway].id,
null
)
peer_external_gateway_interface = each.value.peer_external_gateway_interface
Expand Down

0 comments on commit e098568

Please sign in to comment.