From 8b6052ebd38e8ad7766cf434a9ac58a2c1fd4651 Mon Sep 17 00:00:00 2001 From: Fede agostini <7167673+fedeagstni@users.noreply.github.com> Date: Tue, 13 Sep 2022 01:25:55 -0300 Subject: [PATCH] Add CA and SERVER keys and certs output (#13) Can you please add those outputs in order to be able to export them to SSM Parameter Store? Thanks! --- _outputs.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/_outputs.tf b/_outputs.tf index 73b4e2b..099f080 100644 --- a/_outputs.tf +++ b/_outputs.tf @@ -10,3 +10,15 @@ output "vpn_client_cert" { output "vpn_client_key" { value = tls_private_key.root.private_key_pem } +output "vpn_server_cert" { + value = tls_locally_signed_cert.server.cert_pem +} +output "vpn_server_key" { + value = tls_private_key.server.private_key_pem +} +output "vpn_ca_cert" { + value = tls_self_signed_cert.ca.cert_pem +} +output "vpn_ca_key" { + value = tls_private_key.ca.private_key_pem +}