diff --git a/deployment/terraform/lambda/modelling_e2e/main.tf b/deployment/terraform/lambda/modelling_e2e/main.tf index 31f90e1f..e7b4e127 100644 --- a/deployment/terraform/lambda/modelling_e2e/main.tf +++ b/deployment/terraform/lambda/modelling_e2e/main.tf @@ -25,7 +25,8 @@ module "lambda" { reserved_concurrent_executions = var.reserved_concurrent_executions - batch_size = var.batch_size + batch_size = var.batch_size + maximum_concurrency = var.maximum_concurrency timeout = 60 memory_size = 1024 diff --git a/deployment/terraform/lambda/modelling_e2e/variables.tf b/deployment/terraform/lambda/modelling_e2e/variables.tf index e45ec68a..417f2780 100644 --- a/deployment/terraform/lambda/modelling_e2e/variables.tf +++ b/deployment/terraform/lambda/modelling_e2e/variables.tf @@ -19,9 +19,15 @@ variable "image_digest" { } variable "reserved_concurrent_executions" { + type = number + default = -1 + description = "Reserved concurrency for the Lambda. -1 = unreserved." +} + +variable "maximum_concurrency" { type = number default = 2 - description = "Concurrent executions" + description = "Maximum concurrent Lambda invocations from the SQS trigger." } variable "batch_size" {