Skip to content

Commit

Permalink
Create outputs for the client certificate and key (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
willthames authored Oct 24, 2021
1 parent dcb4cc5 commit cc999dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<cert>` and `</cert>` tags to the ovpn configuration file that you download
`vpn_client_key` - Client key generated to use the client VPN. Add this in between `<key>` and `</key>` tags to the ovpn configuration file that you download

<!--- END_TF_DOCS --->

Expand Down
8 changes: 7 additions & 1 deletion _outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@ output "security_group_id" {
}
output "vpn_endpoint_id" {
value = aws_ec2_client_vpn_endpoint.default.id
}
}
output "vpn_client_cert" {
value = tls_locally_signed_cert.root.cert_pem
}
output "vpn_client_key" {
value = tls_private_key.root.private_key_pem
}

0 comments on commit cc999dd

Please sign in to comment.