From 27bb7da0bd904555f8cab3f8825fa7ffe72d9fc8 Mon Sep 17 00:00:00 2001 From: badra001 Date: Mon, 17 Oct 2022 10:51:17 -0400 Subject: [PATCH] fix --- vpn-transit-gateway/README.md | 1 + vpn-transit-gateway/vpn-config.tf | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/vpn-transit-gateway/README.md b/vpn-transit-gateway/README.md index 1b59334..19ccaee 100644 --- a/vpn-transit-gateway/README.md +++ b/vpn-transit-gateway/README.md @@ -126,5 +126,6 @@ No modules. |------|-------------| | [customer\_gateway\_arns](#output\_customer\_gateway\_arns) | AWS Customer Gateway ARNs | | [customer\_gateway\_ids](#output\_customer\_gateway\_ids) | AWS Customer Gateway IDs | +| [debug](#output\_debug) | n/a | | [vpn\_labels](#output\_vpn\_labels) | VPN Labels for Description field of Endpoint device (Cisco ASR) | | [vpn\_tunnel\_endpoints](#output\_vpn\_tunnel\_endpoints) | VPN Tunnel Endpoint IP Addresses | diff --git a/vpn-transit-gateway/vpn-config.tf b/vpn-transit-gateway/vpn-config.tf index e570177..cc62a27 100644 --- a/vpn-transit-gateway/vpn-config.tf +++ b/vpn-transit-gateway/vpn-config.tf @@ -1,6 +1,6 @@ locals { - single_vpn_tunnel_loopback = one(tolist([for k, v in local.vpn_settings : v.tunnel_loopback])) - single_vpn_tunnel_ip_address = one(tolist([for k, v in local.vpn_settings : v.ip_address])) + single_vpn_tunnel_loopback = tolist([for k, v in local.vpn_settings : v.tunnel_loopback]) + single_vpn_tunnel_ip_address = tolist([for k, v in local.vpn_settings : v.ip_address]) vpn_tunnel_outputs = { for k, v in local.vpn_settings : k => { vpn_name = k site = v.site @@ -58,6 +58,12 @@ locals { } } +output "debug" { + value = { + single_vpn_tunnel_loopback = local.single_vpn_tunnel_loopback + single_vpn_tunnel_ip_address = local.single_vpn_tunnel_ip_address + } +} resource "null_resource" "directory_setup" { triggers = {