Backing code for https://dev.to/tastefulelk/basic-authentication-with-lambda-edge-23o5
npm install
You need to specify the CLOUDFRONT_DISTRIBUTION_ID
environment variable with the Id of the Cloudfront Distribution that you want to attach the Basic Auth lambda to.
Example
CLOUDFRONT_DISTRIBUTION_ID=abc123
npx sls deploy