Skip to content

Commit

Permalink
update outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 26, 2022
1 parent ffc65f6 commit c47e149
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions vpn-transit-gateway/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
output "vpn_tunnel_endpoints" {
description = "VPN Tunnel Endpoint IP Addresses"
value = { for k in keys(local._vpn_settings) : k => {
site = k
value = { for k in keys(local.vpn_settings) : k => {
site = v.site
environment = v.environment
sequence = v.sequence
label = v.label
full_label = format("aws:%v:%v:%v:%v", local.region, local.account_id, aws_vpn_connection.vpn[k].id, v.label)
customer_address = aws_customer_gateway.vpn[k].ip_address
bgp_asn = aws_customer_gateway.vpn[k].bgp_asn
tunnel1_bgp_asn = aws_vpn_connection.vpn[k].tunnel1_bgp_asn
Expand All @@ -14,9 +18,11 @@ output "vpn_tunnel_endpoints" {

output "vpn_labels" {
description = "VPN Labels for Description field of Endpoint device (Cisco ASR)"
value = { for k in keys(local._vpn_settings) : k => {
site = k
label = format("aws:%v:%v:%v:%v", local.region, local.account_id, aws_vpn_connection.vpn[k].id, var.vpc_full_name)
value = { for k in keys(local.vpn_settings) : k => {
site = v.site
environment = v.environment
sequence = v.sequence
label = format("aws:%v:%v:%v:%v", local.region, local.account_id, aws_vpn_connection.vpn[k].id, v.label)
}
}
}

0 comments on commit c47e149

Please sign in to comment.