Skip to content

Commit

Permalink
fix bgp, add cgw ip
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 4, 2021
1 parent b3c71cf commit 141156f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions vpn/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
output "vpn_tunnel_endpoints" {
description = "VPN Tunnel Endpoint IP Addresses"
value = { for k in keys(local.vpn_settings) : k => {
site = k
bgp_asn = aws_vpn_connection.vpn[k].bgp_asn
tunnel1_address = aws_vpn_connection.vpn[k].tunnel1_address
tunnel2_address = aws_vpn_connection.vpn[k].tunnel2_address
site = k
customer_address = aws_customer_gateway.vpn[k].ip_address
tunnel1_bgp_asn = aws_vpn_connection.vpn[k].tunnel1_bgp_asn
tunnel2_bgp_asn = aws_vpn_connection.vpn[k].tunnel1_bgp_asn
tunnel1_address = aws_vpn_connection.vpn[k].tunnel1_address
tunnel2_address = aws_vpn_connection.vpn[k].tunnel2_address
}
}
}
Expand Down

0 comments on commit 141156f

Please sign in to comment.