Skip to content

Commit 8c4b113

Browse files
Merge pull request #30 from sourcefuse/client-vpn-testing
Client vpn testing
2 parents 2f3dee9 + 3b29f58 commit 8c4b113

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

examples/client-vpn/.terraform.lock.hcl

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/certificate/main.tf

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,27 @@ resource "aws_acm_certificate" "this" {
5555
}
5656

5757
resource "aws_ssm_parameter" "private_key" {
58-
count = var.store_in_ssm ? 1 : 0
59-
58+
count = var.store_in_ssm ? 1 : 0
6059
name = "/${var.namespace}/${var.environment}/${var.name}/${var.subject.common_name}/${var.type}/private-key"
6160
description = "Private key for the certificate"
6261
type = "SecureString"
6362
value = tls_private_key.this.private_key_pem
6463
tags = var.tags
64+
lifecycle {
65+
prevent_destroy = false
66+
}
6567
}
6668

6769
resource "aws_ssm_parameter" "cert" {
68-
count = var.store_in_ssm ? 1 : 0
69-
70+
count = var.store_in_ssm ? 1 : 0
7071
name = "/${var.namespace}/${var.environment}/${var.name}/${var.subject.common_name}/${var.type}/cert"
7172
description = "Certificate body for the certificate"
7273
type = "SecureString"
7374
value = var.type == "ca" ? tls_self_signed_cert.ca[0].cert_pem : tls_locally_signed_cert.this[0].cert_pem
7475
tags = var.tags
76+
lifecycle {
77+
prevent_destroy = false
78+
}
7579
}
7680

7781
resource "local_file" "private_key" {

modules/site-to-site-vpn/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ variable "vpn_connection_config" {
111111
- `routes`: Optional static routes to add to the VPN connection.
112112
- `tags`: Key-value pairs to tag the VPN connection.
113113
EOT
114-
sensitive = true
114+
115115
}
116116

117117

0 commit comments

Comments
 (0)