Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 5.05 KB

gettingstarted-limits.md

File metadata and controls

60 lines (43 loc) · 5.05 KB

Lambda quotas

Compute and storage

Lambda sets quotas for the amount of compute and storage resources that you can use to run and store functions. The following quotas apply per AWS Region and can be increased. For more information, see Requesting a quota increase in the Service Quotas User Guide.

Note
New AWS accounts might start out with limits that are lower than these defaults. Lambda monitors usage and raises your limits automatically based on your usage.

Resource Default quota Can be increased up to
Concurrent executions 1,000 Tens of thousands
Storage for uploaded functions (.zip file archives) and layers. Each function version and layer version consumes storage. For best practices on managing your code storage, see Monitoring Lambda code storage in the Lambda Operator Guide. 75 GB Terabytes
Storage for functions defined as container images. These images are stored in Amazon ECR. See Amazon ECR service quotas.
Elastic network interfaces per virtual private cloud (VPC) This quota is shared with other services, such as Amazon Elastic File System (Amazon EFS). See Amazon VPC quotas. 250 Hundreds

For details on concurrency and how Lambda scales your function concurrency in response to traffic, see Lambda function scaling.

Function configuration, deployment, and execution

The following quotas apply to function configuration, deployment, and execution. They cannot be changed.

Note
The Lambda documentation, log messages, and console use the abbreviation MB (rather than MiB) to refer to 1024 KB.

Resource Quota
Function memory allocation 128 MB to 10,240 MB, in 1-MB increments.
Function timeout 900 seconds (15 minutes)
Function environment variables 4 KB, for all environment variables associated with the function, in aggregate
Function resource-based policy 20 KB
Function layers five layers
Function burst concurrency 500 - 3000 (varies per Region)
Invocation payload (request and response) 6 MB (synchronous) 256 KB (asynchronous)
Deployment package (.zip file archive) size 50 MB (zipped, for direct upload) 250 MB (unzipped) This quota applies to all the files you upload, including layers and custom runtimes. 3 MB (console editor)
Container image code package size 10 GB
Test events (console editor) 10
/tmp directory storage 512 MB
File descriptors 1,024
Execution processes/threads 1,024

Lambda API requests

The following quotas are associated with Lambda API requests.

Resource Quota
Invocation requests per Region (requests per second) 10 x concurrent executions quota (synchronous, all sources) 10 x concurrent executions quota (asynchronous, non-AWS sources)
Invocation requests per Region (requests per second) for asynchronous AWS service sources Unlimited requests accepted. Execution rate is based on concurrency available to the function. See Asynchronous invocation.
Invocation requests per function version or alias (requests per second) 10 x allocated provisioned concurrency This quota applies only to functions that use provisioned concurrency.
GetFunction API requests 100 requests per second
GetPolicy API requests 15 requests per second
Remainder of the control plane API requests (excludes invocation, GetFunction, and GetPolicy requests) 15 requests per second

Other services

Quotas for other services, such as AWS Identity and Access Management (IAM), Amazon CloudFront (Lambda@Edge), and Amazon Virtual Private Cloud (Amazon VPC), can impact your Lambda functions. For more information, see AWS service quotas in the Amazon Web Services General Reference, and Using AWS Lambda with other services.