Skip to content

Commit 2ed90bc

Browse files
PRMT-462- addressed comments
1 parent 6aed812 commit 2ed90bc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

infrastructure/iam.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ data "aws_iam_policy_document" "lambda_toggle_bulk_upload_document" {
183183
]
184184

185185
resources = [
186-
aws_lambda_event_source_mapping.bulk_upload_esm.arn
186+
aws_lambda_event_source_mapping.bulk_upload_lambda.arn
187187
]
188188
}
189189
}

infrastructure/lambda-bulk-upload.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ module "bulk-upload-lambda" {
5555
]
5656
}
5757

58-
resource "aws_lambda_event_source_mapping" "bulk_upload_esm" {
58+
resource "aws_lambda_event_source_mapping" "bulk_upload_lambda" {
5959
event_source_arn = module.sqs-lg-bulk-upload-metadata-queue.sqs_arn
6060
function_name = module.bulk-upload-lambda.lambda_arn
61-
enabled = false # Disabled by default; scheduler lambda will control
61+
enabled = false # Disabled by default; toggle-bulk-upload-lambda will control
6262
batch_size = 10
6363
scaling_config {
6464
maximum_concurrency = local.bulk_upload_lambda_concurrent_limit

infrastructure/lambda-toggle-bulk-upload.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module "toggle-bulk-upload-lambda" {
1010
]
1111

1212
lambda_environment_variables = {
13-
ESM_UUID = aws_lambda_event_source_mapping.bulk_upload_esm.uuid
13+
ESM_UUID = aws_lambda_event_source_mapping.bulk_upload_lambda.uuid
1414
}
1515

1616
is_gateway_integration_needed = false

0 commit comments

Comments
 (0)