Skip to content

Commit

Permalink
add outputs for customer_gateway arns and ids
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 22, 2022
1 parent b0ee3b3 commit 789f7c1
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,8 @@
- add vpn-config directory creation
- add vpn-config download

* 1.6.2 -- 20220322
- vpn and vpn-transit-gateway
- add outputs of customer_gateway_arns and customer_gateway_ids

## Version 2.x
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "1.6.1"
_module_version = "1.6.2"
}
2 changes: 2 additions & 0 deletions vpn-transit-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,7 @@ No modules.

| Name | Description |
|------|-------------|
| <a name="output_customer_gateway_arns"></a> [customer\_gateway\_arns](#output\_customer\_gateway\_arns) | AWS Customer Gateway ARNs |
| <a name="output_customer_gateway_ids"></a> [customer\_gateway\_ids](#output\_customer\_gateway\_ids) | AWS Customer Gateway IDs |
| <a name="output_vpn_labels"></a> [vpn\_labels](#output\_vpn\_labels) | VPN Labels for Description field of Endpoint device (Cisco ASR) |
| <a name="output_vpn_tunnel_endpoints"></a> [vpn\_tunnel\_endpoints](#output\_vpn\_tunnel\_endpoints) | VPN Tunnel Endpoint IP Addresses |
10 changes: 10 additions & 0 deletions vpn-transit-gateway/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,13 @@ output "vpn_labels" {
}
}
}

output "customer_gateway_arns" {
description = "AWS Customer Gateway ARNs"
value = var.create ? { for k, v in aws_customer_gateway.vpn : k => v.arn } : {}
}

output "customer_gateway_ids" {
description = "AWS Customer Gateway IDs"
value = var.create ? { for k, v in aws_customer_gateway.vpn : k => v.id } : {}
}
2 changes: 2 additions & 0 deletions vpn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,7 @@ No modules.

| Name | Description |
|------|-------------|
| <a name="output_customer_gateway_arns"></a> [customer\_gateway\_arns](#output\_customer\_gateway\_arns) | AWS Customer Gateway ARNs |
| <a name="output_customer_gateway_ids"></a> [customer\_gateway\_ids](#output\_customer\_gateway\_ids) | AWS Customer Gateway IDs |
| <a name="output_vpn_labels"></a> [vpn\_labels](#output\_vpn\_labels) | VPN Labels for Description field of Endpoint device (Cisco ASR) |
| <a name="output_vpn_tunnel_endpoints"></a> [vpn\_tunnel\_endpoints](#output\_vpn\_tunnel\_endpoints) | VPN Tunnel Endpoint IP Addresses |
10 changes: 10 additions & 0 deletions vpn/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,13 @@ output "vpn_labels" {
}
}
}

output "customer_gateway_arns" {
description = "AWS Customer Gateway ARNs"
value = var.create ? { for k, v in aws_customer_gateway.vpn : k => v.arn } : {}
}

output "customer_gateway_ids" {
description = "AWS Customer Gateway IDs"
value = var.create ? { for k, v in aws_customer_gateway.vpn : k => v.id } : {}
}

0 comments on commit 789f7c1

Please sign in to comment.