Skip to content

Commit f9ba307

Browse files
committed
CCM-11869: ssl module should be conditional
1 parent 9df6d2e commit f9ba307

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

infrastructure/terraform/components/api/module_supplier_ssl.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
module "supplier_ssl" {
2+
count = var.manually_configure_mtls_truststore ? 0 : 1
3+
24
source = "git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/ssl?ref=v2.0.17"
35

46
name = "sapi_trust"

infrastructure/terraform/components/api/s3_object_placeholder_truststore.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ resource "aws_s3_object" "placeholder_truststore" {
33
count = var.manually_configure_mtls_truststore ? 0 : 1
44

55
bucket = local.acct.s3_buckets["truststore"]["id"]
6-
key = "truststore.pem"
7-
content = module.supplier_ssl.cacert_pem
6+
key = "${local.csi}/truststore.pem"
7+
content = module.supplier_ssl[0].cacert_pem
88

99
lifecycle {
1010
ignore_changes = [

0 commit comments

Comments
 (0)