diff --git a/CHANGELOG.md b/CHANGELOG.md
index ee39c02..271b421 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/common/version.tf b/common/version.tf
index 78e6e8d..a33a031 100644
--- a/common/version.tf
+++ b/common/version.tf
@@ -1,3 +1,3 @@
locals {
- _module_version = "1.6.1"
+ _module_version = "1.6.2"
}
diff --git a/vpn-transit-gateway/README.md b/vpn-transit-gateway/README.md
index 645b950..325e8b1 100644
--- a/vpn-transit-gateway/README.md
+++ b/vpn-transit-gateway/README.md
@@ -107,5 +107,7 @@ No modules.
| Name | Description |
|------|-------------|
+| [customer\_gateway\_arns](#output\_customer\_gateway\_arns) | AWS Customer Gateway ARNs |
+| [customer\_gateway\_ids](#output\_customer\_gateway\_ids) | AWS Customer Gateway IDs |
| [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/outputs.tf b/vpn-transit-gateway/outputs.tf
index 9475520..087d4ed 100644
--- a/vpn-transit-gateway/outputs.tf
+++ b/vpn-transit-gateway/outputs.tf
@@ -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 } : {}
+}
diff --git a/vpn/README.md b/vpn/README.md
index 14f9b89..bc6857e 100644
--- a/vpn/README.md
+++ b/vpn/README.md
@@ -98,5 +98,7 @@ No modules.
| Name | Description |
|------|-------------|
+| [customer\_gateway\_arns](#output\_customer\_gateway\_arns) | AWS Customer Gateway ARNs |
+| [customer\_gateway\_ids](#output\_customer\_gateway\_ids) | AWS Customer Gateway IDs |
| [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 9475520..087d4ed 100644
--- a/vpn/outputs.tf
+++ b/vpn/outputs.tf
@@ -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 } : {}
+}