Lambda@Edge

  • Lambda@Edge lets you run Node.js and Python Lambda functions to customize content that CloudFront delivers, executing the functions in AWS locations closer to the viewer.

  • You can use Lambda functions to change CloudFront requests and responses at the following points:

    • After CloudFront receives a request from a viewer (viewer request)

    • Before CloudFront forwards the request to the origin (origin request)

    • After CloudFront receives the response from the origin (origin response)

    • Before CloudFront forwards the response to the viewer (viewer response)

Last updated

Was this helpful?