News for hackers. Stuff that matters.
Re:The Case of the Broken Lambda by lostmsu on Monday September 24, 2018 @01:06PM (#18059360)
TL;DR; It's not trivial to add a native binary (from Python package) to a Lambda function.
Re:The Case of the Broken Lambda by kehrlann on Monday September 24, 2018 @02:38PM (#18060166)
Batteries included, except when it's not :)

Cross platform Python is tough, especially when you use dynamically linked C libs on a platform that can change versions without warning.

Re:The Case of the Broken Lambda by silvexis on Monday September 24, 2018 @06:42PM (#18062115)
TL;DR; it's trivial.

Run `docker run --name lambdapy36 -it -v $(shell pwd):/mycode lambci/lambda:build-python3.6 /bin/sh -c "pip install -r /mycode/requirements.txt -t /mycode/vendored/"`

All your packages are now compiled for the lambda env and have been placed in the /mycode/vendored folder. Either move them into the root before deploy or add /var/task/vendored to Lambda's python path by setting PYTHONPATH: "/var/runtime:/var/task/vendored"

Re:The Case of the Broken Lambda by lostmsu on Tuesday September 25, 2018 @10:31AM (#18066595)
Lol. That at least requires docked installed! And you have to know that magic line!