See the full official documentation for the Human Security AWS Lambda@Edge Enforcer here.
- This repo allows you to generate templates for each Human Security AWS Lambda@Edge Enforcer lambda Version 4 (and above).
- The lambdas are customized and allow you to:
- Edit the enforcer configuration in a separate file.
- Use async calls to fetch specific configuration values.
- Add your custom logic to the enforcer request/response when the handler starts and before the handler finishes, and then send it to the next handler you define.
- git clone the project into your working directory.
- Install dependencies with
npm install
. - Configure the enforcer by modifying the
src/custom/config.ts
file.
Under this file you can find 3 types of configuration parameters:- Mandatory configuration fields that can be found under
Mandatory configurations
comment: - All other configuration fields that you can read more about them here:
- The simple ones under
Simple function configuration
comment. - Custom functions that can be found under
Custom function configurations
comment.
- The simple ones under
- Mandatory configuration fields that can be found under
- Compile the enforcer by running
npm run zip
from the project directory. - Choose the relevant lambda from the 3 generated lambda zip files:
- PXEnforcer.zip
- PXActivities.zip
- PXFirstParty.zip