Setup
- Create a Lambda function in the
us-east-1
region (required for Lambda@Edge). - Deploy the function to CloudFront as a viewer request or origin request trigger.
- Set up the
HALL_API_KEY
environment variable with your Hall API key.
Example
The example below demonstrates how to forward data from incoming requests using AWS Lambda@Edge.index.js