Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing security group outputs #116

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions examples/complete/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
output "vpn_endpoint_arn" {
value = module.ec2_client_vpn.vpn_endpoint_arn
value = module.ec2_client_vpn.vpn_endpoint_arn
description = "The ARN of the Client VPN Endpoint Connection."
}

output "vpn_endpoint_id" {
value = module.ec2_client_vpn.vpn_endpoint_id
value = module.ec2_client_vpn.vpn_endpoint_id
description = "The ID of the Client VPN Endpoint Connection."
}

output "vpn_endpoint_dns_name" {
value = module.ec2_client_vpn.vpn_endpoint_dns_name
value = module.ec2_client_vpn.vpn_endpoint_dns_name
description = "The DNS Name of the Client VPN Endpoint Connection."
}

output "client_configuration" {
sensitive = true
value = module.ec2_client_vpn.full_client_configuration
sensitive = true
value = module.ec2_client_vpn.full_client_configuration
description = "VPN Client Configuration data."
}
10 changes: 10 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ output "vpn_endpoint_dns_name" {
description = "The DNS Name of the Client VPN Endpoint Connection."
}

output "vpn_security_group" {
value = local.security_group_enabled ? module.vpn_security_group : null
description = "The security group module of the Client VPN Endpoint Connection."
}

output "vpn_security_group_id" {
value = local.security_group_enabled ? module.vpn_security_group.id : null
description = "The security group ID of the Client VPN Endpoint Connection."
}

output "client_configuration" {
value = local.enabled ? join("", data.awsutils_ec2_client_vpn_export_client_config.default[*].client_configuration) : null
description = "VPN Client Configuration data."
Expand Down
Loading