What are the limitations of AWS Lambda?
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 run-time resource limits for a Lambda function per invocation.
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 run-time resource limits for a Lambda function per invocation.
AWS Lambda Resource Limits
| Resource | Default Limit |
|---|---|
| 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 |
AWS Lambda Deployment Limits
| Item | Default Limit |
|---|---|
| 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 |
Comments