-
Notifications
You must be signed in to change notification settings - Fork 12
/
outputs.tf
40 lines (34 loc) · 1.19 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#Module : VPN
# Description : This Script is used to create VPN, CUSTOMER GATEWAY, and VPN GATEWAY.
output "vpn_connection_id" {
value = concat(
aws_vpn_connection.default[*].id
)[0]
description = "The ID of the VPN Connection."
}
output "gateway_attachment_id" {
value = var.create_virtual_private_gateway ? concat(
aws_vpn_gateway_attachment.default[*].id
)[0] : "n/a"
description = "The ID of the Gateway Attachment."
}
output "customer_gateway_id" {
value = concat(
aws_customer_gateway.main[*].id
)[0]
description = "The ID of the VPN Connection Route."
}
output "vpn_gateway_id" {
value = var.create_virtual_private_gateway ? concat(
aws_vpn_gateway.vpn[*].id
)[0] : var.create_virtual_private_gateway
description = "The ID of the VPN gateway."
}
output "tags" {
value = module.labels.tags
description = "A mapping of tags to assign to the resource."
}
output "vpn_connection_tunnel1_cgw_inside_address" {
value = try(aws_vpn_connection.default[0].tunnel1_cgw_inside_address)
description = "A list with the the RFC 6890 link-local address of the first VPN tunnel (Customer Gateway Side) if `create_vpn_connection = true`, or empty otherwise"
}