diff --git a/infrastructure/terraform/components/dl/README.md b/infrastructure/terraform/components/dl/README.md
index 58b24a5f..3cc47f95 100644
--- a/infrastructure/terraform/components/dl/README.md
+++ b/infrastructure/terraform/components/dl/README.md
@@ -40,11 +40,11 @@ No requirements.
| Name | Source | Version |
|------|--------|---------|
| [kms](#module\_kms) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-kms.zip | n/a |
-| [lambda\_apim\_key\_generation](#module\_lambda\_apim\_key\_generation) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip | n/a |
-| [lambda\_lambda\_apim\_refresh\_token](#module\_lambda\_lambda\_apim\_refresh\_token) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip | n/a |
-| [mesh\_poll](#module\_mesh\_poll) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip | n/a |
-| [pdm\_mock](#module\_pdm\_mock) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip | n/a |
-| [pdm\_uploader](#module\_pdm\_uploader) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip | n/a |
+| [lambda\_apim\_key\_generation](#module\_lambda\_apim\_key\_generation) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
+| [lambda\_lambda\_apim\_refresh\_token](#module\_lambda\_lambda\_apim\_refresh\_token) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
+| [mesh\_poll](#module\_mesh\_poll) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
+| [pdm\_mock](#module\_pdm\_mock) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
+| [pdm\_uploader](#module\_pdm\_uploader) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
| [s3bucket\_cf\_logs](#module\_s3bucket\_cf\_logs) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-s3bucket.zip | n/a |
| [s3bucket\_letters](#module\_s3bucket\_letters) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-s3bucket.zip | n/a |
| [s3bucket\_static\_assets](#module\_s3bucket\_static\_assets) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-s3bucket.zip | n/a |
@@ -52,9 +52,9 @@ No requirements.
| [sqs\_pdm\_uploader](#module\_sqs\_pdm\_uploader) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-sqs.zip | n/a |
| [sqs\_ttl](#module\_sqs\_ttl) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-sqs.zip | n/a |
| [sqs\_ttl\_handle\_expiry\_errors](#module\_sqs\_ttl\_handle\_expiry\_errors) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-sqs.zip | n/a |
-| [ttl\_create](#module\_ttl\_create) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip | n/a |
-| [ttl\_handle\_expiry](#module\_ttl\_handle\_expiry) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip | n/a |
-| [ttl\_poll](#module\_ttl\_poll) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip | n/a |
+| [ttl\_create](#module\_ttl\_create) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
+| [ttl\_handle\_expiry](#module\_ttl\_handle\_expiry) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
+| [ttl\_poll](#module\_ttl\_poll) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
## Outputs
| Name | Description |
diff --git a/infrastructure/terraform/components/dl/cloudwatch_event_bus.tf b/infrastructure/terraform/components/dl/cloudwatch_event_bus.tf
index f187bee5..07a6177c 100644
--- a/infrastructure/terraform/components/dl/cloudwatch_event_bus.tf
+++ b/infrastructure/terraform/components/dl/cloudwatch_event_bus.tf
@@ -1,5 +1,5 @@
resource "aws_cloudwatch_event_bus" "main" {
- name = "${local.csi}"
+ name = local.csi
kms_key_identifier = module.kms.key_id
diff --git a/infrastructure/terraform/components/dl/locals.tf b/infrastructure/terraform/components/dl/locals.tf
index 2d733a08..9b1c13e4 100644
--- a/infrastructure/terraform/components/dl/locals.tf
+++ b/infrastructure/terraform/components/dl/locals.tf
@@ -1,12 +1,12 @@
locals {
- aws_lambda_functions_dir_path = "../../../../lambdas"
- log_destination_arn = "arn:aws:logs:${var.region}:${var.shared_infra_account_id}:destination:nhs-main-obs-firehose-logs"
+ aws_lambda_functions_dir_path = "../../../../lambdas"
+ log_destination_arn = "arn:aws:logs:${var.region}:${var.shared_infra_account_id}:destination:nhs-main-obs-firehose-logs"
apim_access_token_ssm_parameter_name = "/${var.component}/${var.environment}/apim/access_token"
apim_api_key_ssm_parameter_name = "/${var.component}/${var.environment}/apim/api_key"
apim_private_key_ssm_parameter_name = "/${var.component}/${var.environment}/apim/private_key"
apim_keystore_s3_bucket = "nhs-${var.aws_account_id}-${var.region}-${var.environment}-${var.component}-static-assets"
root_domain_name = "${var.environment}.${local.acct.route53_zone_names["digital-letters"]}"
root_domain_id = local.acct.route53_zone_ids["digital-letters"]
- ttl_shard_count = 3
+ ttl_shard_count = 3
deploy_pdm_mock = var.enable_pdm_mock
}
diff --git a/infrastructure/terraform/components/dl/module_lambda_apim_key_generation.tf b/infrastructure/terraform/components/dl/module_lambda_apim_key_generation.tf
index 9bec3182..c580aaa9 100644
--- a/infrastructure/terraform/components/dl/module_lambda_apim_key_generation.tf
+++ b/infrastructure/terraform/components/dl/module_lambda_apim_key_generation.tf
@@ -1,5 +1,5 @@
module "lambda_apim_key_generation" {
- source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip"
+ source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip"
function_name = "apim-key-generation"
description = "A function to generate APIM public and private keys"
@@ -33,7 +33,6 @@ module "lambda_apim_key_generation" {
force_lambda_code_deploy = var.force_lambda_code_deploy
enable_lambda_insights = false
- send_to_firehose = true
log_destination_arn = local.log_destination_arn
log_subscription_role_arn = local.acct.log_subscription_role_arn
diff --git a/infrastructure/terraform/components/dl/module_lambda_apim_refresh_token.tf b/infrastructure/terraform/components/dl/module_lambda_apim_refresh_token.tf
index 311bc0b4..46d26986 100644
--- a/infrastructure/terraform/components/dl/module_lambda_apim_refresh_token.tf
+++ b/infrastructure/terraform/components/dl/module_lambda_apim_refresh_token.tf
@@ -1,5 +1,5 @@
module "lambda_lambda_apim_refresh_token" {
- source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip"
+ source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip"
function_name = "apim-refresh-token"
description = "A function to generate APIM access tokens"
@@ -32,7 +32,6 @@ module "lambda_lambda_apim_refresh_token" {
force_lambda_code_deploy = var.force_lambda_code_deploy
enable_lambda_insights = false
- send_to_firehose = true
log_destination_arn = local.log_destination_arn
log_subscription_role_arn = local.acct.log_subscription_role_arn
diff --git a/infrastructure/terraform/components/dl/module_lambda_mesh_poll.tf b/infrastructure/terraform/components/dl/module_lambda_mesh_poll.tf
index 1b986107..6e00b595 100644
--- a/infrastructure/terraform/components/dl/module_lambda_mesh_poll.tf
+++ b/infrastructure/terraform/components/dl/module_lambda_mesh_poll.tf
@@ -1,5 +1,5 @@
module "mesh_poll" {
- source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip"
+ source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip"
function_name = "mesh-poll"
description = "A lambda function for polling MESH inbox for new messages"
@@ -32,7 +32,6 @@ module "mesh_poll" {
force_lambda_code_deploy = var.force_lambda_code_deploy
enable_lambda_insights = false
- send_to_firehose = true
log_destination_arn = local.log_destination_arn
log_subscription_role_arn = local.acct.log_subscription_role_arn
diff --git a/infrastructure/terraform/components/dl/module_lambda_pdm_mock.tf b/infrastructure/terraform/components/dl/module_lambda_pdm_mock.tf
index ab5475c5..0734c000 100644
--- a/infrastructure/terraform/components/dl/module_lambda_pdm_mock.tf
+++ b/infrastructure/terraform/components/dl/module_lambda_pdm_mock.tf
@@ -1,6 +1,6 @@
module "pdm_mock" {
count = local.deploy_pdm_mock ? 1 : 0
- source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip"
+ source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip"
function_name = "pdm-mock"
description = "A lambda function for mocking PDM (Patient Data Manager) API endpoints"
@@ -32,7 +32,6 @@ module "pdm_mock" {
force_lambda_code_deploy = var.force_lambda_code_deploy
enable_lambda_insights = false
- send_to_firehose = true
log_destination_arn = local.log_destination_arn
log_subscription_role_arn = local.acct.log_subscription_role_arn
diff --git a/infrastructure/terraform/components/dl/module_lambda_pdm_uploader.tf b/infrastructure/terraform/components/dl/module_lambda_pdm_uploader.tf
index 2ff5a4c7..eeeec268 100644
--- a/infrastructure/terraform/components/dl/module_lambda_pdm_uploader.tf
+++ b/infrastructure/terraform/components/dl/module_lambda_pdm_uploader.tf
@@ -1,5 +1,5 @@
module "pdm_uploader" {
- source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip"
+ source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip"
function_name = "pdm-uploader"
description = "A function to upload documents to PDM"
@@ -31,7 +31,6 @@ module "pdm_uploader" {
force_lambda_code_deploy = var.force_lambda_code_deploy
enable_lambda_insights = false
- send_to_firehose = true
log_destination_arn = local.log_destination_arn
log_subscription_role_arn = local.acct.log_subscription_role_arn
diff --git a/infrastructure/terraform/components/dl/module_lambda_ttl_create.tf b/infrastructure/terraform/components/dl/module_lambda_ttl_create.tf
index 0bcc81d4..e67cc630 100644
--- a/infrastructure/terraform/components/dl/module_lambda_ttl_create.tf
+++ b/infrastructure/terraform/components/dl/module_lambda_ttl_create.tf
@@ -1,5 +1,5 @@
module "ttl_create" {
- source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip"
+ source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip"
function_name = "ttl-create"
description = "A function for creating TTL records"
@@ -31,7 +31,6 @@ module "ttl_create" {
force_lambda_code_deploy = var.force_lambda_code_deploy
enable_lambda_insights = false
- send_to_firehose = true
log_destination_arn = local.log_destination_arn
log_subscription_role_arn = local.acct.log_subscription_role_arn
diff --git a/infrastructure/terraform/components/dl/module_lambda_ttl_handle_expiry.tf b/infrastructure/terraform/components/dl/module_lambda_ttl_handle_expiry.tf
index dab6697a..06305b58 100644
--- a/infrastructure/terraform/components/dl/module_lambda_ttl_handle_expiry.tf
+++ b/infrastructure/terraform/components/dl/module_lambda_ttl_handle_expiry.tf
@@ -1,5 +1,5 @@
module "ttl_handle_expiry" {
- source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip"
+ source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip"
function_name = "ttl-handle-expiry"
description = "A function for handling deleted TTL records"
@@ -31,7 +31,6 @@ module "ttl_handle_expiry" {
force_lambda_code_deploy = var.force_lambda_code_deploy
enable_lambda_insights = false
- send_to_firehose = true
log_destination_arn = local.log_destination_arn
log_subscription_role_arn = local.acct.log_subscription_role_arn
diff --git a/infrastructure/terraform/components/dl/module_lambda_ttl_poll.tf b/infrastructure/terraform/components/dl/module_lambda_ttl_poll.tf
index 9cf1744d..a937c846 100644
--- a/infrastructure/terraform/components/dl/module_lambda_ttl_poll.tf
+++ b/infrastructure/terraform/components/dl/module_lambda_ttl_poll.tf
@@ -1,5 +1,5 @@
module "ttl_poll" {
- source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-lambda.zip"
+ source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip"
function_name = "ttl-poll"
description = "A function for deleting any overdue TTL records"
@@ -32,7 +32,6 @@ module "ttl_poll" {
force_lambda_code_deploy = var.force_lambda_code_deploy
enable_lambda_insights = false
- send_to_firehose = true
log_destination_arn = local.log_destination_arn
log_subscription_role_arn = local.acct.log_subscription_role_arn
diff --git a/infrastructure/terraform/components/dl/variables.tf b/infrastructure/terraform/components/dl/variables.tf
index 1fbba2b1..d3f63e02 100644
--- a/infrastructure/terraform/components/dl/variables.tf
+++ b/infrastructure/terraform/components/dl/variables.tf
@@ -89,7 +89,7 @@ variable "parent_acct_environment" {
variable "mesh_poll_schedule" {
type = string
description = "Schedule to poll MESH for messages"
- default = "cron(0,30 8-16 ? * MON-FRI *)" # Every 30 minutes between 8am and 4:30pm Mon-Fri
+ default = "cron(0,30 8-16 ? * MON-FRI *)" # Every 30 minutes between 8am and 4:30pm Mon-Fri
}
variable "queue_batch_size" {
@@ -113,7 +113,7 @@ variable "enable_dynamodb_delete_protection" {
variable "ttl_poll_schedule" {
type = string
description = "Schedule to poll for any overdue TTL records"
- default = "rate(10 minutes)" # Every 10 minutes
+ default = "rate(10 minutes)" # Every 10 minutes
}
variable "pdm_mock_access_token" {