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 returns the response to the viewer
- Origin request: Before CloudFront forwards a request to the origin
- Origin response: When...