Programming languages
JavaScript (ECMAScript 5.1 compliant)
Node.js and Python
Yes
CloudFront KeyValueStore only supports No
Scale
10,000,000 requests per second or more
Up to 10,000 requests per second per Region
Function duration
Submillisecond
Up to 5 seconds (viewer request and viewer response)
Up to 30 seconds (origin request and origin response)
Maximum memory
For more information, see . 2 MB
128 MB – 10,240 MB (10 GB)
Maximum size of the function code and included libraries
10 KB
1 MB (viewer request and viewer response)
50 MB (origin request and origin response)
Access to the request body
No
Yes
Access to geolocation and device data
Yes
No (viewer request and viewer response)
Yes (origin request and origin response)
Can build and test entirely within CloudFront
Yes
No
Function logging and metrics
Yes
Yes
Pricing
Free tier available; charged per request
No free tier; charged per request and function duration