Lambda quotas - AWS Lambda

Lambda quotas

Important

New AWS accounts have reduced concurrency and memory quotas. AWS raises these quotas automatically based on your usage. You can also request a quota increase.

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.

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)

Note

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.

Note: Lambda allocates CPU power in proportion to the amount of memory configured. You can increase or decrease the memory and CPU power allocated to your function using the Memory (MB) setting. At 1,769 MB, a function has the equivalent of one vCPU.

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 each for request and response (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 settings size

16 KB

Container image code package size

10 GB

Test events (console editor)

10

/tmp directory storage

Between 512 MB and 10,240 MB, in 1-MB increments

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 function per Region (synchronous)

Each instance of your execution environment can serve up to 10 requests per second. In other words, the total invocation limit is 10 times your concurrency limit. See Lambda function scaling.

Invocation requests per function per Region (asynchronous)

Each instance of your execution environment can serve an unlimited number of requests. In other words, the total invocation limit is based only on concurrency available to your function. See Lambda function scaling.

Invocation requests per function version or alias (requests per second)

10 x allocated provisioned concurrency

Note

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.