diff --git a/tools/lambda-promtail/main.tf b/tools/lambda-promtail/main.tf index 7d7054b223525..5e9b5224b67fb 100644 --- a/tools/lambda-promtail/main.tf +++ b/tools/lambda-promtail/main.tf @@ -189,6 +189,8 @@ resource "aws_lambda_function" "this" { memory_size = 128 package_type = var.lambda_promtail_image == "" ? "Zip" : "Image" + reserved_concurrent_executions = var.lambda_reserved_concurrent_executions + # From the Terraform AWS Lambda docs: If both subnet_ids and security_group_ids are empty then vpc_config is considered to be empty or unset. vpc_config { # Every subnet should be able to reach an EFS mount target in the same Availability Zone. Cross-AZ mounts are not permitted. diff --git a/tools/lambda-promtail/variables.tf b/tools/lambda-promtail/variables.tf index 4639ca9229546..e5b22ffebbb45 100644 --- a/tools/lambda-promtail/variables.tf +++ b/tools/lambda-promtail/variables.tf @@ -102,6 +102,12 @@ variable "batch_size" { default = "" } +variable "lambda_reserved_concurrent_executions" { + type = number + description = "Amount of reserved concurrent executions for the Lambda function. A value of -1 removes any concurrency limitations. A value of 0 prevents the Lambda function from being triggered at all." + default = -1 +} + variable "lambda_vpc_subnets" { type = list(string) description = "List of subnet IDs associated with the Lambda function."