diff --git a/README.md b/README.md index 603e6cc..3c3fef0 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,8 @@ The following resources will be created: ## Outputs -No output. +`vpn_client_cert` - Client certificate generated to use the client VPN. Add this in between `` and `` tags to the ovpn configuration file that you download +`vpn_client_key` - Client key generated to use the client VPN. Add this in between `` and `` tags to the ovpn configuration file that you download diff --git a/_outputs.tf b/_outputs.tf index c6e1f7f..73b4e2b 100644 --- a/_outputs.tf +++ b/_outputs.tf @@ -3,4 +3,10 @@ output "security_group_id" { } output "vpn_endpoint_id" { value = aws_ec2_client_vpn_endpoint.default.id -} \ No newline at end of file +} +output "vpn_client_cert" { + value = tls_locally_signed_cert.root.cert_pem +} +output "vpn_client_key" { + value = tls_private_key.root.private_key_pem +}