Skip to content

Commit 722a7ce

Browse files
committed
Make variables global
1 parent 006dd97 commit 722a7ce

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

infrastructure/terraform/components/api/locals.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ locals {
2727
SUPPLIER_ID_HEADER = "nhsd-supplier-id",
2828
APIM_CORRELATION_HEADER = "nhsd-correlation-id",
2929
DOWNLOAD_URL_TTL_SECONDS = 60
30+
SNS_TOPIC_ARN = "${module.eventsub.sns_topic.arn}",
31+
EVENT_SOURCE = "/data-plane/supplier-api/${var.group}/${var.environment}/letters"
3032
}
3133

3234
core_pdf_bucket_arn = "arn:aws:s3:::comms-${var.core_account_id}-eu-west-2-${var.core_environment}-api-stg-pdf-pipeline"

infrastructure/terraform/components/api/module_lambda_letter_status_update.tf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ module "letter_status_update" {
3434
log_destination_arn = local.destination_arn
3535
log_subscription_role_arn = local.acct.log_subscription_role_arn
3636

37-
lambda_env_vars = merge(local.common_lambda_env_vars, {
38-
SNS_TOPIC_ARN = "${module.eventsub.sns_topic.arn}",
39-
EVENT_SOURCE = "/data-plane/supplier-api/${var.group}/${var.environment}/letters"
40-
})
37+
lambda_env_vars = merge(local.common_lambda_env_vars, {})
4138
}
4239

4340
data "aws_iam_policy_document" "letter_status_update" {

0 commit comments

Comments
 (0)