Menu
Amazon CloudFront
Developer Guide (API Version 2016-09-29)

Limits

CloudFront entities are subject to the following limits.

General Limits

Entity Limit

Data transfer rate per distribution

40 Gbps

Request a higher limit

Requests per second per distribution

100,000

Request a higher limit

Tags that can be added to a CloudFront web or RTMP distribution

50

Objects that you can serve per distribution

Unlimited

Maximum length of a request, including headers and query strings

20,480 bytes

Maximum length of a URL

8,192 bytes

Active CloudFront key pairs for trusted signers

For more information, see Specifying the AWS Accounts That Can Create Signed URLs and Signed Cookies (Trusted Signers).

2

General Limits on Web Distributions

Entity Limit

Web distributions per AWS account

For more information, see Working with Web Distributions.

200

Request a higher limit

Maximum file size for HTTP GET, POST, and PUT requests

20 GB

Response timeout per origin

For more information, see Origin Response Timeout (Amazon EC2, Elastic Load Balancing, and Other Custom Origins Only).

4-60 seconds

Request a higher limit

File compression: range of file sizes that CloudFront compresses

For more information, see Serving Compressed Files.

1,000 to 10,000,000 bytes

Alternate domain names (CNAMEs) per distribution

For more information, see Using Alternate Domain Names (CNAMEs).

100

Request a higher limit

Origins per distribution

25

Request a higher limit

Cache behaviors per distribution

25

Request a higher limit

Limits on Whitelisted Cookies (Web Distributions Only)

Entity Limit

Whitelisted cookies per cache behavior

For more information, see Configuring CloudFront to Cache Objects Based on Cookies.

10

Request a higher limit

Total number of bytes in whitelisted cookie names (doesn't apply if you configure CloudFront to forward all cookies to the origin)

512 minus the number of whitelisted cookies

Limits on Whitelisted Query Strings (Web Distributions Only)

Entity Limit

Whitelisted query strings per cache behavior

For more information, see Configuring CloudFront to Cache Based on Query String Parameters.

10

Request a higher limit

Limits on Custom Headers (Web Distributions Only)

Entity Limit

Whitelisted headers per cache behavior

For more information, see Configuring CloudFront to Cache Objects Based on Request Headers.

10

Request a higher limit

Custom headers: maximum number of custom headers that you can configure CloudFront to forward to the origin

For more information, see Forwarding Custom Headers to Your Origin (Web Distributions Only).

10 name/value pairs

Request a higher limit

Custom headers: maximum length of a header name

256 characters

Custom headers: maximum length of a header value

1,783

characters

Custom headers: maximum length of all header values and names combined

10,240 characters

Limits on SSL Certificates (Web Distributions Only)

Entity Limit

SSL certificates per AWS account when serving HTTPS requests using dedicated IP addresses (no limit when serving HTTPS requests using SNI)

For more information, see Using HTTPS with CloudFront.

2

Request a higher limit

SSL certificates that can be associated with a CloudFront web distribution

1

Limits on Invalidations

Entity Limit

Object invalidation: maximum number of objects allowed in active invalidation requests, excluding wildcard invalidations

For more information, see Invalidating Objects (Web Distributions Only).

3,000

Object invalidation: maximum number of active wildcard invalidations allowed

15

Object invalidation: maximum number of objects that one wildcard invalidation can process

Unlimited

Limits on Lambda@Edge

Due to the constrained execution environment, Lambda@Edge has restrictions in addition to the default Lambda limits. For more information, see Limits in the AWS Lambda Developer Guide.

For more information, see Requirements and Restrictions on Lambda Functions.

Entity

Limit

Memory

128 MB

Timeout for CloudFront origin request and origin response events. (The function can make network calls to resources such as S3 buckets, DynamoDB tables, or EC2 instances in AWS Regions.)

3 seconds

Timeout for CloudFront viewer request and viewer response events. (The function can't make network calls.)

1 second

Maximum compressed size of your Lambda function and any included libraries

1 MB

Distributions per AWS account that you can create triggers for

25

Triggers per distribution

25

Size of a response that is generated by a Lambda function, including headers and body

  • Viewer request events – 40 KB

  • Origin request events – 256 KB

Requests per second

10,000

Request a higher limit

Concurrent executions

For more information, see Lambda Function Concurrent Executions in the AWS Lambda Developer Guide.

1000

Request a higher limit

Limits on RTMP Distributions

Entity Limit

RTMP distributions per AWS account

For more information, see Working with RTMP Distributions.

100

Request a higher limit