This is a really cute use for Lambda, and a great working example of the kinds of limitations one could expect to bump into.
I was recently asked to evaluate Lambda for use in hosting a bunch of existing web sites, and just from README.md, I'm glad I backed the hell away from that pandora's box before opening it.
Yeah, that's not really what it's intended for so that makes sense.
Lambdas are great for anything you can wire them up to in AWS, but using them with API Gateway is a pain.
For things like processing files or images as they appear in an S3 bucket, feeding or eating from a queue, replacing CRON jobs or small ETLs, and about a dozen other uses I have found them to be amazing.
This is a perfect use for Lambda (i.e., low-traffic, once-off tasks that don't require a full server), or at least this would be a good fit if not for immaturity issues like missing WWW-Authenticate.
But Lambda at scale is very expensive. A 100 request/second would cost more than $1,500/month, when even a single nano server could easily service that kind of load all by itself.
I was recently asked to evaluate Lambda for use in hosting a bunch of existing web sites, and just from README.md, I'm glad I backed the hell away from that pandora's box before opening it.