diff --git a/vpn-transit-gateway/outputs.tf b/vpn-transit-gateway/outputs.tf index ac67427..0f94e0d 100644 --- a/vpn-transit-gateway/outputs.tf +++ b/vpn-transit-gateway/outputs.tf @@ -1,6 +1,6 @@ output "vpn_tunnel_endpoints" { description = "VPN Tunnel Endpoint IP Addresses" - value = { for k in keys(local.vpn_settings) : k => { + value = { for k, v in local.vpn_settings : k => { site = v.site environment = v.environment sequence = v.sequence @@ -18,7 +18,7 @@ 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 => { + value = { for k, v in local.vpn_settings : k => { site = v.site environment = v.environment sequence = v.sequence