Ideas for additional sample applications
I was asked on Twitter (can't find it now, not sure if it was DM or public) whether serverlessish / re:Web would also work with software like nginx. While it's probably not the best example of what re:Web is useful for, I think it could be a neat proof of what is possible.
What other apps might we want to create examples for? I think Django might be another popular-but-untapped source of serverless users.
Do you mean a simple nginx that just serves static files? How configurable would it have to be? I'd be interested to hear a use-case, which would be a good starting point to build upon.
But for what it's worth: I have put an experimental[0] package on the AWS Serverless Application Repository: https://serverlessrepo.aws.amazon.com/applications/eu-central-1/329261680777/reweb
It includes a ready-to-go nginx with php-fpm. The deployment is pretty slick: You'd simply supply it the EFS Access Point ARN and Subnet/SG ARNs. That's all. It then deploys the re:Web Lambda and creates a matching API Gateway.
Then it's ready to serve any PHP or any static files via nginx.
But this isn't what you were thinking about, I believe. To make some decent sense, it should be possible to actually configure nginx. I guess one option would be to put the configuration on EFS too (as a separate directory). I'll think about that some more.
Regarding Django, that's a good idea, thanks! I'll look into that soon.
[0]: It's a hacked-together Zip file created by extracting RPMs. Major butchery. (We talked about using Lambda to deploy Docker images, but that won't work, as the Lambda environment can't run a Docker Daemon -- and doing it purely via AWS API is impossible, as far as I can tell)
http://it20.info/2021/11/running-the-stock-nginx-container-image-with-aws-lambda/