Skip to content

Commit 0177275

Browse files
enabling batch size on group event lambda (#42)
1 parent 2ed476b commit 0177275

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

main.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,11 @@ resource "aws_sqs_queue" "oxbow_lambda_fifo_sqs_dlq" {
195195
}
196196

197197
resource "aws_lambda_event_source_mapping" "group_events_lambda_sqs_trigger" {
198-
count = local.enable_group_events ? 1 : 0
199-
event_source_arn = aws_sqs_queue.group_events_lambda_sqs[0].arn
200-
function_name = aws_lambda_function.group_events_lambda[0].arn
201-
198+
count = local.enable_group_events ? 1 : 0
199+
event_source_arn = aws_sqs_queue.group_events_lambda_sqs[0].arn
200+
function_name = aws_lambda_function.group_events_lambda[0].arn
201+
batch_size = var.group_event_lambda_batch_size
202+
maximum_batching_window_in_seconds = var.maximum_batching_window_in_seconds
202203
}
203204

204205

variables.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,3 +354,13 @@ variable "glue_sync_config" {
354354
})
355355
description = "Configuration of glue-sync lambda"
356356
}
357+
358+
variable "group_event_lambda_batch_size" {
359+
description = "describe your variable"
360+
default = 10
361+
}
362+
363+
variable "group_event_lambda_maximum_batching_window_in_seconds" {
364+
description = "describe your variable"
365+
default = 1
366+
}

0 commit comments

Comments
 (0)