Lambda@Edge was launched by AWS during the 2016 AWS re:Invent summit; however, it had been in the preview mode until right now. The service basically allows you to execute Lambda functions in edge locations in response to CloudFront events. With this service, you now don't need to install, configure, or scale servers globally in order to customize your content. With Lambda@Edge, all this work is handled by the Lambda service itself. All you need to do is write the function and deploy it, and that's it!
At the time of writing, Lambda@Edge supports writing functions for the following CloudFront events:
- Viewer request: When CloudFront receives a request from a viewer
- Viewer response: Before CloudFront ...