Serverless: password protecting a static website in an AWS S3 bucket

Basic HTTP Authentication for S3 and CloudFront with Lambda@Edge