diff --git a/vpn/README.md b/vpn/README.md index 5a8a180..f917bad 100644 --- a/vpn/README.md +++ b/vpn/README.md @@ -86,5 +86,5 @@ No modules. | Name | Description | |------|-------------| -| [vpn\_label](#output\_vpn\_label) | VPN Label for Description field of Endpoint device (Cisco ASR) | +| [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/outputs.tf b/vpn/outputs.tf index 9b24f7e..3f75c6b 100644 --- a/vpn/outputs.tf +++ b/vpn/outputs.tf @@ -9,8 +9,8 @@ output "vpn_tunnel_endpoints" { } } -output "vpn_label" { - description = "VPN Label for Description field of Endpoint device (Cisco ASR)" +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)