Skip to content

Commit de0d8c9

Browse files
CCM-12858: WIP fixes
1 parent fb231f9 commit de0d8c9

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed
Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
11
resource "aws_lambda_event_source_mapping" "core_notifier_lambda" {
22
event_source_arn = module.sqs_core_notifier.sqs_queue_arn
33
function_name = module.core_notifier.function_arn
4-
starting_position = "TRIM_HORIZON"
5-
batch_size = 50
6-
maximum_batching_window_in_seconds = 10
7-
maximum_retry_attempts = 3
4+
batch_size = var.queue_batch_size
5+
maximum_batching_window_in_seconds = var.queue_batch_window_seconds
86

97
function_response_types = [
108
"ReportBatchItemFailures"
119
]
12-
13-
destination_config {
14-
on_failure {
15-
destination_arn = module.sqs_core_notifier_errors.sqs_queue_arn
16-
}
17-
}
18-
19-
filter_criteria {
20-
filter {
21-
pattern = jsonencode({
22-
eventName : ["REMOVE"]
23-
})
24-
}
25-
}
2610
}

infrastructure/terraform/components/dl/module_lambda_core_notifier.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ module "core_notifier" {
4040
"APIM_ACCESS_TOKEN_SSM_PARAMETER_NAME" = local.apim_access_token_ssm_parameter_name
4141
"EVENT_PUBLISHER_EVENT_BUS_ARN" = aws_cloudwatch_event_bus.main.arn
4242
"EVENT_PUBLISHER_DLQ_URL" = module.sqs_event_publisher_errors.sqs_queue_url
43+
"ENVIRONMENT" = var.environment
4344
}
4445
}
4546

0 commit comments

Comments
 (0)