News for hackers. Stuff that matters.
Re:New for AWS Lambda – Container Image Support by simonw on Tuesday December 01, 2020 @05:06PM (#25270639)
My wishlist for this feature (and for AWS Lambda in general):

- Don't make me build the Docker image myself. I'd like to be able to deploy lambdas by sending you a Dockerfile and having you build it for me, with as few additional steps as possible.

- Make it as easy as possible to run containers that speak HTTP, like Google Cloud Run does. Having a wrapper that translates the AWS Lambda runtime into HTTP calls, maybe even as a proxy I can run inside my own container, would help a lot here.

- Make it as easy as possible for me to host my lambda as the "root" URL of a domain or subdomain that I own - without those nasty /api/ path prefixes.

Zeit Now (the Docker-based predecessor to Vercel) did this the best in my opinion - they had an HTTP API that you could POST a Dockerfile to and they would build it into an image and then start a container listening on an HTTP port, with an HTTPS proxy in front of it, running on a subdomain that I could easily customize.

I would LOVE to see AWS Lambda offer an equivalent developer experience. I'm super-excited about container image support but I'll admit I am absolutely dreading the several hours (to several days) it's going to take me to figure out how to actually get my code running on it.

Re:New for AWS Lambda – Container Image Support by wwright on Tuesday December 01, 2020 @05:35PM (#25270957)
One of the difficulties with this is that Dockerfiles are usually not very reproducible, mostly due to the design of the distributions they are based on. It could be very surprising to send the same Dockerfile to the endpoint twice and get very different runtime results.
Re:New for AWS Lambda – Container Image Support by simonw on Tuesday December 01, 2020 @06:21PM (#25271383)
I'd expect that I would send a Dockerfile once and have that compiled into a lambda for me which would then run in perpetuity unless I sent over a fresh Dockerfile to over-write that deployment, so non-reproducible Dockerfiles wouldn't bother me.

I'm OK with developers needing to understand that a Dockerfile may build differently each time if they don't take extra steps to prevent that (like pinning installed versions etc).

Re:New for AWS Lambda – Container Image Support by scoopertrooper on Tuesday December 01, 2020 @06:42PM (#25271557)
This doesn't seem to me like something that should be a core part of the lambda product, but maybe some sort of simplified build pipeline service that has Lambda as a target.
Re:New for AWS Lambda – Container Image Support by solarengineer on Wednesday December 02, 2020 @06:27AM (#25275431)
Possibly using AWS CodeCommit + CodePipeline.
Re:New for AWS Lambda – Container Image Support by crb002 on Thursday December 03, 2020 @11:04PM (#25298756)
CodeBuild builds Docker images. You can write a proxy wrapper in a few lines. Write a lambdalith that processes all the root level functionality.
Re:New for AWS Lambda – Container Image Support by munns on Tuesday December 01, 2020 @05:08PM (#25270667)
Awesome, thanks for sharing this.