Customize at the edge with Lambda@Edge (original) (raw)
Lambda@Edge is an extension of AWS Lambda. Lambda@Edge is a compute service that lets you execute functions that customize the content that Amazon CloudFront delivers. You can author Node.js or Python functions in the Lambda console in one AWS Region, US East (N. Virginia).
After you create the function, you can add triggers using the Lambda console or CloudFront console so that the functions run in AWS locations that are closer to the viewer, without provisioning or managing servers. Optionally, you can use Lambda and CloudFront API operations to set up your functions and triggers programmatically.
Lambda@Edge scales automatically, from a few requests per day to thousands per second. Processing requests at AWS locations closer to the viewer instead of on origin servers significantly reduces latency and improves the user experience.
Topics
- How Lambda@Edge works with requests and responses
- Ways to use Lambda@Edge
- Get started with Lambda@Edge functions (console)
- Set up IAM permissions and roles for Lambda@Edge
- Write and create a Lambda@Edge function
- Add triggers for a Lambda@Edge function
- Test and debug Lambda@Edge functions
- Delete Lambda@Edge functions and replicas
- Lambda@Edge event structure
- Work with requests and responses
- Lambda@Edge example functions
Work with key value data
How Lambda@Edge works with requests and responses
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.