AWS Lambda Limits
This section discusses AWS Lambda limits.
List of AWS Lambda Limits
Every Lambda function is allocated with a fixed amount of specific resources regardless of the memory allocation, and each function is allocated with a fixed amount of code storage per function and per account.
The following table lists the runtime resource limits for a Lambda function per invocation.
AWS Lambda Resource Limits
|Ephemeral disk capacity ("/tmp" space)||512 MB|
|Number of file descriptors||1,024|
|Number of processes and threads (combined total)||1,024|
|Maximum execution duration per request||300 seconds|
|Invoke request body payload size (RequestResponse)||6 MB|
|Invoke request body payload size (Event)||128 K|
|Invoke response body payload size (RequestResponse)||6 MB|
The following table lists the Lambda account limits per region.
AWS Lambda Account Limits Per Region
|Concurrent executions (see Lambda Function Concurrent Executions).||600|
To request a limit increase for concurrent execution
Open the AWS Support Center page, sign in, if necessary, and then click Create case.
Under Regarding, select Service Limit Increase.
Under Limit Type, select Lambda, fill in the necessary fields in the form, and then click the button at the bottom of the page for your preferred method of contact.
AWS may automatically raise the concurrent execution limit on your behalf to enable your function to match the incoming event rate, as in the case of triggering the function from an Amazon S3 bucket.
The following table lists service limits for deploying a Lambda function.
AWS Lambda Deployment Limits
|Lambda function deployment package size (.zip/.jar file)||50 MB|
|Total size of all the deployment packages that can be uploaded per region||75 GB|
|Size of code/dependencies that you can zip into a deployment package (uncompressed zip/jar size)||250 MB|
|Total size of environment variables set||4 KB|
AWS Lambda Limit Errors
Functions that exceed any of the limits listed in the previous limits tables will fail with an
exceeded limits exception.
These limits are fixed and cannot be changed at this time. For example, if you receive the exception
or an error message similar to
"Code storage limit exceeded" from AWS Lambda, you need to reduce the size of your code storage.
To reduce the size of your code storage
Remove the functions that you no longer use.
Reduce the code size of the functions that you do not want to remove. You can find the code size of a Lambda function by using the AWS Lambda console, the AWS Command Line Interface, or AWS SDKs.