Skip to content

Commit cda4aa9

Browse files
committed
CCM-13295: Rename status_recorder lambda to report_event_transformer
1 parent 18f5fb0 commit cda4aa9

17 files changed

Lines changed: 22 additions & 22 deletions

infrastructure/terraform/components/dl/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ No requirements.
5454
| <a name="module_pdm_uploader"></a> [pdm\_uploader](#module\_pdm\_uploader) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
5555
| <a name="module_print_analyser"></a> [print\_analyser](#module\_print\_analyser) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
5656
| <a name="module_print_status_handler"></a> [print\_status\_handler](#module\_print\_status\_handler) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
57+
| <a name="module_report_event_transformer"></a> [report\_event\_transformer](#module\_report\_event\_transformer) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
5758
| <a name="module_s3bucket_cf_logs"></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 |
5859
| <a name="module_s3bucket_file_safe"></a> [s3bucket\_file\_safe](#module\_s3bucket\_file\_safe) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-s3bucket.zip | n/a |
5960
| <a name="module_s3bucket_letters"></a> [s3bucket\_letters](#module\_s3bucket\_letters) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-s3bucket.zip | n/a |
@@ -71,7 +72,6 @@ No requirements.
7172
| <a name="module_sqs_scanner"></a> [sqs\_scanner](#module\_sqs\_scanner) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-sqs.zip | n/a |
7273
| <a name="module_sqs_ttl"></a> [sqs\_ttl](#module\_sqs\_ttl) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.24/terraform-sqs.zip | n/a |
7374
| <a name="module_sqs_ttl_handle_expiry_errors"></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 |
74-
| <a name="module_status_recorder"></a> [status\_recorder](#module\_status\_recorder) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
7575
| <a name="module_ttl_create"></a> [ttl\_create](#module\_ttl\_create) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |
7676
| <a name="module_ttl_handle_expiry"></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 |
7777
| <a name="module_ttl_poll"></a> [ttl\_poll](#module\_ttl\_poll) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip | n/a |

infrastructure/terraform/components/dl/kinesis_firehose_delivery_stream_to_s3_reporting.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ resource "aws_kinesis_firehose_delivery_stream" "to_s3_reporting" {
2525

2626
parameters {
2727
parameter_name = "LambdaArn"
28-
parameter_value = "${module.status_recorder.function_arn}:$LATEST"
28+
parameter_value = "${module.report_event_transformer.function_arn}:$LATEST"
2929
}
3030
parameters {
3131
parameter_name = "RoleArn"
@@ -130,7 +130,7 @@ data "aws_iam_policy_document" "firehose_policy" {
130130
]
131131

132132
resources = [
133-
"${module.status_recorder.function_arn}:$LATEST",
133+
"${module.report_event_transformer.function_arn}:$LATEST",
134134
]
135135
}
136136

infrastructure/terraform/components/dl/module_lambda_status_recorder.tf renamed to infrastructure/terraform/components/dl/module_lambda_report_event_transformer.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
module "status_recorder" {
1+
module "report_event_transformer" {
22
source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.29/terraform-lambda.zip"
33

4-
function_name = "status-recorder"
5-
description = "A function for processing all digital letter events"
4+
function_name = "report-event-transformer"
5+
description = "A function for transforming all digital letter events"
66

77
aws_account_id = var.aws_account_id
88
component = local.component
@@ -16,7 +16,7 @@ module "status_recorder" {
1616

1717
function_s3_bucket = local.acct.s3_buckets["lambda_function_artefacts"]["id"]
1818
function_code_base_path = local.aws_lambda_functions_dir_path
19-
function_code_dir = "status-recorder/dist"
19+
function_code_dir = "report-event-transformer/dist"
2020
function_include_common = true
2121
handler_function_name = "handler"
2222
runtime = "nodejs22.x"
File renamed without changes.

lambdas/status-recorder/package.json renamed to lambdas/report-event-transformer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"jest-mock-extended": "^3.0.7",
1313
"typescript": "^5.9.3"
1414
},
15-
"name": "nhs-notify-digital-letters-status-recorder",
15+
"name": "nhs-notify-digital-letters-report-event-transformer",
1616
"private": true,
1717
"scripts": {
1818
"lambda-build": "rm -rf dist && npx esbuild --bundle --minify --sourcemap --target=es2020 --platform=node --loader:.node=file --entry-names=[name] --outdir=dist src/index.ts",

lambdas/status-recorder/src/__tests__/apis/firehose-handler.test.ts renamed to lambdas/report-event-transformer/src/__tests__/apis/firehose-handler.test.ts

File renamed without changes.

lambdas/status-recorder/src/__tests__/container.test.ts renamed to lambdas/report-event-transformer/src/__tests__/container.test.ts

File renamed without changes.

lambdas/status-recorder/src/__tests__/index.test.ts renamed to lambdas/report-event-transformer/src/__tests__/index.test.ts

File renamed without changes.

lambdas/status-recorder/src/__tests__/test-data.ts renamed to lambdas/report-event-transformer/src/__tests__/test-data.ts

File renamed without changes.

lambdas/status-recorder/src/apis/firehose-handler.ts renamed to lambdas/report-event-transformer/src/apis/firehose-handler.ts

File renamed without changes.

0 commit comments

Comments
 (0)