I need to password protect static website running behind S3 + CloudFront.
According to Google Lambda@Edge is the best (?) for it.
The problem is that those users (>50) are external users and are not integrated with our IAM. I was just thinking about the following options:
- Lambda function with hardcoded list of users/passwords (and update passwords 1/month)
- Lambda function connecting to external DB with where all users/password are stored (which one would be the cheapest ?)
What do you recommend ?