Skip to content

AWS Lambda function is not configured for function-level concurrent execution Limit

Description

Adding concurrency to Lambda initializes that number of execution environments for multiple parallel requests at low latency. However, this could spike costs and open the door for abuse. Adding concurrency limits can prevent a rapid spike in usage and costs, while also increasing or lowering the default concurrency limit.

Code Example

go
resource "aws_lambda_function" "example" {
   ...
+  reserved_concurrent_executions = 100
}

Remediation

Terraform

  • Resource: aws_lambda_function
  • Arguments: reserved_concurrent_executions

Rule Details

FieldValue
IDIAC-0168
SeverityLOW
IaC TypeCloudformation
FrameworksTerraform, TerraformPlan, CloudFormation
Checkov IDCKV_AWS_115

References