Search code examples
amazon-web-servicesaws-lambdaaws-cdk

Limit Lambda concurrency on function level with CDK


I want to limit the max concurrency for a specific lambda function. According to this post, it should be possible. However, I cannot find any option for that in CDK, and most of the information point to provisioned concurrency, which is almost the opposite.


Solution

  • You can control this with the reservedConcurrentExecutions prop of the Function construct.

    Documentation explaining the behavior of this parameter