(opens in a new window)

AWS Lambda@Edge

Lambda and Cloudfront Edge Extention

Functions Edge Compute

AWS Lambda@Edge Information Resource Links

AWS Lambda@Edge Overview

Functions Edge Compute

AWS Lambda@Edge Information Resource Links

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.

Use Cases

  • Serverless Functions
  • Edge Computing
  • Dynamic Content Delivery
  • Request and Response Manipulation
  • Bot Mitigation
  • Origin Routing

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.

AWS Lambda@Edge Features

Service Types

Functions
Available
Edge Compute
Available

Supported 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

AWS Lambda@Edge Pricing

Just like AWS Lambda, 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 GB, in 1 MB increments. In contrast to Lambda, Lambda@Edge does not offer a free tier. Lambda@Edge pricing does not vary by region. You are charged for the total number of requests across all your functions executed in all regions.

Resource Pricing

AWS Lambda@Edge pricing based on function executions, duration, and request sizes in US East (N. Virginia).
  • Requests

    Per 1 Million Requests

    $0.60

  • Duration

    Per GB-second

    $0.00005001

Get an estimate of your project costs with AWS Lambda@Edge
Find the full pricing details on the official AWS Lambda@Edge

AWS Lambda@Edge Regions

Lambda@Edge functions are deployed with a global scope in the Cloudfront Edge network to us-east-1. CloudFront has 700+ POPs in 100+ cities across 50+ countries and 900+ embedded POPs across 300+ cities in North America, Europe, and Asia. Based on our research, we have identified 131 Edge locations.
An interactive map displaying AWS Lambda@Edge's 131 datacenter locations by region. (October 28, 2024) - Map by d3js.org

Source: https://aws.amazon.com/cloudfront/features/

Best AWS Lambda@Edge Alternatives

Alternatives to AWS Lambda@Edge are generated by matching platform type, use cases, supported runtimes and container support.