From f59f7ab1f5f0380bad861476298c168873b9e4f8 Mon Sep 17 00:00:00 2001 From: Mark Slowey Date: Thu, 29 Jan 2026 15:14:52 +0000 Subject: [PATCH 1/3] new event source variable --- infrastructure/terraform/components/api/README.md | 1 + .../api/module_lambda_letter_updates_transformer.tf | 2 +- infrastructure/terraform/components/api/variables.tf | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/infrastructure/terraform/components/api/README.md b/infrastructure/terraform/components/api/README.md index 0f72aaf22..012736019 100644 --- a/infrastructure/terraform/components/api/README.md +++ b/infrastructure/terraform/components/api/README.md @@ -26,6 +26,7 @@ No requirements. | [force\_lambda\_code\_deploy](#input\_force\_lambda\_code\_deploy) | If the lambda package in s3 has the same commit id tag as the terraform build branch, the lambda will not update automatically. Set to True if making changes to Lambda code from on the same commit for example during development | `bool` | `false` | no | | [group](#input\_group) | The group variables are being inherited from (often synonmous with account short-name) | `string` | n/a | yes | | [kms\_deletion\_window](#input\_kms\_deletion\_window) | When a kms key is deleted, how long should it wait in the pending deletion state? | `string` | `"30"` | no | +| [letter\_event\_source](#input\_letter\_event\_source) | Source value to use for the letter status event updates | `string` | `"/data-plane/supplier-api/nhs-supplier-api-prod/main/letters"` | no | | [letter\_table\_ttl\_hours](#input\_letter\_table\_ttl\_hours) | Number of hours to set as TTL on letters table | `number` | `24` | no | | [letter\_variant\_map](#input\_letter\_variant\_map) | n/a | `map(object({ supplierId = string, specId = string }))` |
{
"lv1": {
"specId": "spec1",
"supplierId": "supplier1"
},
"lv2": {
"specId": "spec2",
"supplierId": "supplier1"
},
"lv3": {
"specId": "spec3",
"supplierId": "supplier2"
}
}
| no | | [log\_level](#input\_log\_level) | The log level to be used in lambda functions within the component. Any log with a lower severity than the configured value will not be logged: https://docs.python.org/3/library/logging.html#levels | `string` | `"INFO"` | no | diff --git a/infrastructure/terraform/components/api/module_lambda_letter_updates_transformer.tf b/infrastructure/terraform/components/api/module_lambda_letter_updates_transformer.tf index 52a444ec4..8699f4fe2 100644 --- a/infrastructure/terraform/components/api/module_lambda_letter_updates_transformer.tf +++ b/infrastructure/terraform/components/api/module_lambda_letter_updates_transformer.tf @@ -36,7 +36,7 @@ module "letter_updates_transformer" { lambda_env_vars = merge(local.common_lambda_env_vars, { EVENTPUB_SNS_TOPIC_ARN = "${module.eventpub.sns_topic.arn}", - EVENT_SOURCE = "/data-plane/supplier-api/${var.group}/${var.environment}/letters" + EVENT_SOURCE = var.letter_event_source }) } diff --git a/infrastructure/terraform/components/api/variables.tf b/infrastructure/terraform/components/api/variables.tf index 9785ec00b..31971e106 100644 --- a/infrastructure/terraform/components/api/variables.tf +++ b/infrastructure/terraform/components/api/variables.tf @@ -181,3 +181,9 @@ variable "sns_success_logging_sample_percent" { description = "Enable SNS Delivery Successful Sample Percentage" default = 0 } + +variable "letter_event_source" { + type = string + description = "Source value to use for the letter status event updates" + default = "/data-plane/supplier-api/nhs-supplier-api-prod/main/letters" +} From 7d4b489b5306a6a03c53b59fbffa1e9e33816bbe Mon Sep 17 00:00:00 2001 From: Mark Slowey Date: Thu, 29 Jan 2026 15:23:19 +0000 Subject: [PATCH 2/3] version 1.1.3 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 877a4251f..cb0c132ee 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.2-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash} +1.1.3-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash} From e5c3a95c5ba648d47495d767ce48d1379c2a9d5a Mon Sep 17 00:00:00 2001 From: Mark Slowey Date: Thu, 29 Jan 2026 15:46:18 +0000 Subject: [PATCH 3/3] update-status --- infrastructure/terraform/components/api/README.md | 2 +- infrastructure/terraform/components/api/variables.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/terraform/components/api/README.md b/infrastructure/terraform/components/api/README.md index 012736019..30fa1991f 100644 --- a/infrastructure/terraform/components/api/README.md +++ b/infrastructure/terraform/components/api/README.md @@ -26,7 +26,7 @@ No requirements. | [force\_lambda\_code\_deploy](#input\_force\_lambda\_code\_deploy) | If the lambda package in s3 has the same commit id tag as the terraform build branch, the lambda will not update automatically. Set to True if making changes to Lambda code from on the same commit for example during development | `bool` | `false` | no | | [group](#input\_group) | The group variables are being inherited from (often synonmous with account short-name) | `string` | n/a | yes | | [kms\_deletion\_window](#input\_kms\_deletion\_window) | When a kms key is deleted, how long should it wait in the pending deletion state? | `string` | `"30"` | no | -| [letter\_event\_source](#input\_letter\_event\_source) | Source value to use for the letter status event updates | `string` | `"/data-plane/supplier-api/nhs-supplier-api-prod/main/letters"` | no | +| [letter\_event\_source](#input\_letter\_event\_source) | Source value to use for the letter status event updates | `string` | `"/data-plane/supplier-api/nhs-supplier-api-prod/main/update-status"` | no | | [letter\_table\_ttl\_hours](#input\_letter\_table\_ttl\_hours) | Number of hours to set as TTL on letters table | `number` | `24` | no | | [letter\_variant\_map](#input\_letter\_variant\_map) | n/a | `map(object({ supplierId = string, specId = string }))` |
{
"lv1": {
"specId": "spec1",
"supplierId": "supplier1"
},
"lv2": {
"specId": "spec2",
"supplierId": "supplier1"
},
"lv3": {
"specId": "spec3",
"supplierId": "supplier2"
}
}
| no | | [log\_level](#input\_log\_level) | The log level to be used in lambda functions within the component. Any log with a lower severity than the configured value will not be logged: https://docs.python.org/3/library/logging.html#levels | `string` | `"INFO"` | no | diff --git a/infrastructure/terraform/components/api/variables.tf b/infrastructure/terraform/components/api/variables.tf index 31971e106..2975b2c07 100644 --- a/infrastructure/terraform/components/api/variables.tf +++ b/infrastructure/terraform/components/api/variables.tf @@ -185,5 +185,5 @@ variable "sns_success_logging_sample_percent" { variable "letter_event_source" { type = string description = "Source value to use for the letter status event updates" - default = "/data-plane/supplier-api/nhs-supplier-api-prod/main/letters" + default = "/data-plane/supplier-api/nhs-supplier-api-prod/main/update-status" }