Skip to content

Commit 73a844a

Browse files
committed
feat: Add cloudwatch and security group outputs
1 parent 03cd995 commit 73a844a

File tree

1 file changed

+35
-15
lines changed

1 file changed

+35
-15
lines changed

outputs.tf

+35-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
output "vpn_endpoint_arn" {
2-
value = local.enabled ? join("", aws_ec2_client_vpn_endpoint.default[*].arn) : null
3-
description = "The ARN of the Client VPN Endpoint Connection."
4-
}
5-
6-
output "vpn_endpoint_id" {
7-
value = local.enabled ? join("", aws_ec2_client_vpn_endpoint.default[*].id) : null
8-
description = "The ID of the Client VPN Endpoint Connection."
9-
}
10-
11-
output "vpn_endpoint_dns_name" {
12-
value = local.enabled ? join("", aws_ec2_client_vpn_endpoint.default[*].dns_name) : null
13-
description = "The DNS Name of the Client VPN Endpoint Connection."
14-
}
15-
161
output "client_configuration" {
172
value = local.enabled ? join("", data.awsutils_ec2_client_vpn_export_client_config.default[*].client_configuration) : null
183
description = "VPN Client Configuration data."
@@ -34,3 +19,38 @@ output "full_client_configuration" {
3419
description = "Client configuration including client certificate and private key"
3520
sensitive = true
3621
}
22+
23+
output "log_group_arn" {
24+
value = local.logging_enabled ? module.cloudwatch_log.log_group_arn : null
25+
description = "The ARN of the CloudWatch Log Group used for Client VPN connection logging."
26+
}
27+
28+
output "log_group_name" {
29+
value = local.logging_enabled ? module.cloudwatch_log.log_group_name : null
30+
description = "The name of the CloudWatch Log Group used for Client VPN connection logging."
31+
}
32+
33+
output "security_group_id" {
34+
value = local.security_group_enabled ? module.vpn_security_group.id : null
35+
description = "The ID of the security group associated with the Client VPN endpoint."
36+
}
37+
38+
output "security_group_name" {
39+
value = local.security_group_enabled ? module.vpn_security_group.name : null
40+
description = "The ID of the security group associated with the Client VPN endpoint."
41+
}
42+
43+
output "vpn_endpoint_arn" {
44+
value = local.enabled ? join("", aws_ec2_client_vpn_endpoint.default[*].arn) : null
45+
description = "The ARN of the Client VPN Endpoint Connection."
46+
}
47+
48+
output "vpn_endpoint_dns_name" {
49+
value = local.enabled ? join("", aws_ec2_client_vpn_endpoint.default[*].dns_name) : null
50+
description = "The DNS Name of the Client VPN Endpoint Connection."
51+
}
52+
53+
output "vpn_endpoint_id" {
54+
value = local.enabled ? join("", aws_ec2_client_vpn_endpoint.default[*].id) : null
55+
description = "The ID of the Client VPN Endpoint Connection."
56+
}

0 commit comments

Comments
 (0)