Skip to content

Commit 381eb33

Browse files
committed
CCM-11586: Correct references to new modules
1 parent 7517345 commit 381eb33

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

infrastructure/terraform/components/api/locals.tf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,4 @@ locals {
1414
})
1515

1616
destination_arn = "arn:aws:logs:${var.region}:${var.shared_infra_account_id}:destination:nhs-main-obs-firehose-logs"
17-
18-
csi_s3 = replace(
19-
format(
20-
"%s-%s-%s-%s",
21-
var.project,
22-
var.aws_account_id,
23-
var.region,
24-
var.environment
25-
),
26-
"_",
27-
"",
28-
)
2917
}

infrastructure/terraform/components/api/module_domain_truststore.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module "domain_truststore" {
22
source = "git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/s3bucket?ref=v2.0.17"
33

4-
name = "${local.csi_s3}-truststore"
4+
name = "truststore"
55
aws_account_id = var.aws_account_id
66
component = var.component
77
environment = var.environment
@@ -13,7 +13,7 @@ module "domain_truststore" {
1313

1414
bucket_logging_target = {
1515
bucket = module.logging_bucket.bucket
16-
prefix = "${local.csi_s3}-truststore/"
16+
prefix = "truststore/"
1717
}
1818

1919
policy_documents = [

infrastructure/terraform/components/api/module_logging_bucket.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module "logging_bucket" {
22
source = "git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//infrastructure/modules/s3bucket?ref=v2.0.17"
33

4-
name = "${local.csi_s3}-bucket-logs"
4+
name = "bucket-logs"
55
aws_account_id = var.aws_account_id
66
component = var.component
77
environment = var.environment

0 commit comments

Comments
 (0)