Skip to content

Commit

Permalink
add track number
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 6, 2022
1 parent 3a41e09 commit d79deb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vpn-transit-gateway/vpn-config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ locals {
tunnel1_cgw_inside_address = aws_vpn_connection.vpn[k].tunnel1_cgw_inside_address
tunnel1_vgw_inside_address = aws_vpn_connection.vpn[k].tunnel1_vgw_inside_address
tunnel1_interface_number = length(v.tunnel_interfaces) == 2 ? v.tunnel_interfaces[0] : ""
tunnel1_track_number = length(v.tunnel_track) == 2 ? v.tunnel_track[0] : ""
tunnel1_loopback = v.tunnel_loopback != null ? v.tunnel_loopback : ""

tunnel2_label = format("%v %v %v %v %v", aws_vpn_connection.vpn[k].tunnel2_inside_cidr, local.account_id, local.region_short, var.vpc_short_name, v.label)
Expand All @@ -34,6 +35,7 @@ locals {
tunnel2_cgw_inside_address = aws_vpn_connection.vpn[k].tunnel2_cgw_inside_address
tunnel2_vgw_inside_address = aws_vpn_connection.vpn[k].tunnel2_vgw_inside_address
tunnel2_interface_number = length(v.tunnel_interfaces) == 2 ? v.tunnel_interfaces[1] : ""
tunnel2_track_number = length(v.tunnel_track) == 2 ? v.tunnel_track[1] : ""
tunnel2_loopback = v.tunnel_loopback != null ? v.tunnel_loopback : ""
}
}
Expand Down

0 comments on commit d79deb2

Please sign in to comment.