AWS Lambda@Edge logo

AWS Lambda@Edge

Lambda and Cloudfront Edge Extention

AWS Lambda@Edge Overview

Core Product

Functions Edge Compute

Information Resources

AWS Lambda@Edge Homepage
AWS Lambda@Edge Homepage

What is AWS Lambda@Edge?

AWS Lambda@Edge is an extention of Amazon’s well known serverless compute services Lambda and CloudFront Functions. As of September 2024, Lambda@Edge is available at all 600+ Cloudfront Edge Locations globally.

Focus

Lambda@Edge is ideal for complex operations such as dynamic content generation, custom authentication, and advanced routing logic. The functions can access the public internet, allowing them to make HTTP requests to external services or APIs. This capability is essential for scenarios that require fetching data from outside the AWS environment or integrating with third-party services. Lambda@Edge can also access underlying filesystems, enabling more complex operations that require reading or writing files

Deployment

Lambda@Edge is Lambda functions in response to Cloudfront events.The Lambda function must be created in the us-east-1 US East (N. Virginia) Region, if code taken from bucket, bucket also needs to be in us-east-1 region After you create the function, you can add triggers in either the Lambda console or CloudFront console, or use Lambda and CloudFront API operations to set up your functions and triggers programmatically.

Service Types

Functions
Available
Edge Compute
Available

Functions Runtimes

Node.js
Available
Python
Available

Execution Limits and Resource Quotas

Min. Memory
128 MB
Max. Memory
10 GB
Default Timeout
5 sec
Max. Timeout
30 sec
Request Payload
6 MB
Response Payload
6 MB

Free Tier

Priicing Model

Duration cost depends on the amount of memory you allocate to your function. You can allocate any amount of memory to your function between 128 MB and 10,240 MB, in 1 MB increments.

  • Requests: $0.60 per 1M requests
  • Duration: $0.00005001 per GB-second

Get an estimate of your project costs with AWS Lambda@Edge's

Lambda@Edge functions are deployed with a global scope in the Cloudfront Edge network. Cloudfront has 600+ PoPs to execute logic where your end viewers are located.

An interactive map displaying all 57 AWS Lambda@Edge datacenters by region.

Alternatives to AWS Lambda@Edge are generated by matching platform type and supported runtimes