Skip to content

Commit 7f44d7c

Browse files
rename allocate-letter to supplier-allocator
1 parent 9cc1221 commit 7f44d7c

18 files changed

Lines changed: 65 additions & 102 deletions

infrastructure/terraform/components/api/lambda_event_source_mapping_allocate_letters.tf

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
resource "aws_lambda_event_source_mapping" "supplier_allocator" {
2+
event_source_arn = module.sqs_supplier_allocator.sqs_queue_arn
3+
function_name = module.supplier_allocator.function_name
4+
batch_size = 10
5+
maximum_batching_window_in_seconds = 5
6+
function_response_types = [
7+
"ReportBatchItemFailures"
8+
]
9+
}

infrastructure/terraform/components/api/lambda_event_source_mapping_upsert_letter.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "aws_lambda_event_source_mapping" "upsert_letter" {
2-
event_source_arn = module.sqs_allocated_letters.sqs_queue_arn
2+
event_source_arn = module.sqs_letter_updates.sqs_queue_arn
33
function_name = module.upsert_letter.function_name
44
batch_size = 10
55
maximum_batching_window_in_seconds = 5

infrastructure/terraform/components/api/module_lambda_allocate_letter.tf renamed to infrastructure/terraform/components/api/module_lambda_supplier_allocator.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ module "allocate_letter" {
2020

2121
function_s3_bucket = local.acct.s3_buckets["lambda_function_artefacts"]["id"]
2222
function_code_base_path = local.aws_lambda_functions_dir_path
23-
function_code_dir = "allocate-letter/dist"
23+
function_code_dir = "supplier-allocator/dist"
2424
function_include_common = true
25-
handler_function_name = "allocateLetterHandler"
25+
handler_function_name = "supplierAllocatorHandler"
2626
runtime = "nodejs22.x"
2727
memory = 512
2828
timeout = 29

infrastructure/terraform/components/api/module_sqs_allocated_letters.tf renamed to infrastructure/terraform/components/api/module_sqs_supplier_allocator.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module "sqs_allocated_letters" {
66
environment = var.environment
77
project = var.project
88
region = var.region
9-
name = "allocated-letters"
9+
name = "supplier-allocator"
1010

1111
sqs_kms_key_arn = module.kms.key_arn
1212

lambdas/allocate-letter/src/config/__tests__/deps.test.ts renamed to lambdas/supplier-allocator/src/config/__tests__/deps.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Deps } from "lambdas/allocate-letter/src/config/deps";
1+
import type { Deps } from "lambdas/supplier-allocator/src/config/deps";
22

33
describe("createDependenciesContainer", () => {
44
const env = {

0 commit comments

Comments
 (0)