News for hackers. Stuff that matters.
Re:Ask HN: Does anyone else find the AWS Lambda developer ex... by i_v on Sunday April 18, 2021 @04:53PM (#26856251)
The best solution I've found for local testing is the Lambda Runtime Interface Emulator (RIE)[1]. It's basically a little Go wrapper[2] that runs your handler and makes it callable through an HTTP API. I considered writing a test harness around this for convenient integration testing but in my recent evaluation, I ended up avoiding Lambda (it's been really nice for small one-off tasks but was too expensive for the most recent and somewhat fringe use-case I considered using it for).

[1]: https://docs.aws.amazon.com/lambda/latest/dg/images-test.htm... [2]: https://github.com/aws/aws-lambda-runtime-interface-emulator

Re:Ask HN: Does anyone else find the AWS Lambda developer ex... by tdfirth on Sunday April 18, 2021 @06:40PM (#26857191)
Ah that's a good idea - I have actually played around with that. When they released support for running lambdas with container images I used it to have a go at making a custom lambda image.

I didn't join the dots up for this use case though, thanks!

Re:Ask HN: Does anyone else find the AWS Lambda developer ex... by i_v on Sunday April 18, 2021 @07:37PM (#26857647)
I did the same and learned a ton about their runtime! In my case, I did similar and also had a go (pun intended) at shipping a single-binary Docker image (using the scratch base image). Best of luck!