Skip to content

Commit 97b4263

Browse files
committed
CCM-11007: Lambda log destination fix
1 parent 56ae8cf commit 97b4263

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

infrastructure/terraform/components/app/locals.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ locals {
22
cloudfront_files_domain_name = "files.${local.root_domain_name}"
33
root_domain_name = "${var.environment}.${local.acct.dns_zone["name"]}"
44
lambdas_source_code_dir = "../../../../lambdas"
5+
log_destination_arn = var.group == "nhs-notify-template-management-prod" ? "arn:aws:logs:${var.region}:${var.observability_account_id}:destination:nhs-notify-main-acct-firehose-logs" : "arn:aws:logs:${var.region}:${var.observability_account_id}:destination:nhs-main-obs-firehose-logs" #Please remove this after we do dev/nonprod cutover for this BC
56
}

infrastructure/terraform/components/app/module_backend_api.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module "backend_api" {
2323

2424
enable_proofing = var.enable_proofing
2525
letter_suppliers = var.letter_suppliers
26-
log_destination_arn = "arn:aws:logs:${var.region}:${var.observability_account_id}:destination:nhs-notify-main-acct-firehose-logs"
26+
log_destination_arn = local.log_destination_arn
2727
log_subscription_role_arn = local.acct.log_subscription_role_arn
2828

2929
send_to_firehose = true

0 commit comments

Comments
 (0)