Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ module "runners" {
lambda_runtime = var.lambda_runtime
lambda_architecture = var.lambda_architecture
lambda_event_source_mapping_batch_size = var.lambda_event_source_mapping_batch_size
enable_scale_up_event_source_mapping = var.enable_scale_up_event_source_mapping
lambda_event_source_mapping_maximum_batching_window_in_seconds = var.lambda_event_source_mapping_maximum_batching_window_in_seconds
lambda_zip = var.runners_lambda_zip
lambda_scale_up_memory_size = var.runners_scale_up_lambda_memory_size
Expand Down
1 change: 1 addition & 0 deletions modules/runners/scale-up.tf
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ resource "aws_lambda_event_source_mapping" "scale_up" {
function_response_types = ["ReportBatchItemFailures"]
batch_size = var.lambda_event_source_mapping_batch_size
maximum_batching_window_in_seconds = var.lambda_event_source_mapping_maximum_batching_window_in_seconds
enabled = var.enable_scale_up_event_source_mapping
tags = var.tags
}

Expand Down
6 changes: 6 additions & 0 deletions modules/runners/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,12 @@ variable "lambda_event_source_mapping_batch_size" {
}
}

variable "enable_scale_up_event_source_mapping" {
description = "Enable the SQS event source mapping that invokes the scale-up lambda. Disable to drive scale-up from an external consumer of the build queue, for example a rate limiter that paces CreateFleet calls. When disabled, nothing consumes the build queue unless you provide your own consumer."
type = bool
default = true
}

variable "lambda_event_source_mapping_maximum_batching_window_in_seconds" {
description = "Maximum amount of time to gather records before invoking the lambda function, in seconds. AWS requires this to be greater than 0 if batch_size is greater than 10. Defaults to 0."
type = number
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,12 @@ variable "lambda_event_source_mapping_batch_size" {
default = 10
}

variable "enable_scale_up_event_source_mapping" {
description = "Enable the SQS event source mapping that invokes the scale-up lambda. Disable to drive scale-up from an external consumer of the build queue, for example a rate limiter that paces CreateFleet calls. When disabled, nothing consumes the build queue unless you provide your own consumer."
type = bool
default = true
}

variable "lambda_event_source_mapping_maximum_batching_window_in_seconds" {
description = "Maximum amount of time to gather records before invoking the lambda function, in seconds. AWS requires this to be greater than 0 if batch_size is greater than 10. Defaults to 0."
type = number
Expand Down
Loading