Re:AWS Lambda and .zip is a recipe for serverless success
by tracker1 on Sunday March 18, 2018 @08:00PM
(#16615272)
I use containers (Docker for Windows|Mac) to create my lambda zip for dist, isn't that close enough? lol.
[ Parent
| on HN ]
Re:AWS Lambda and .zip is a recipe for serverless success
by jbrambleDC on Sunday March 18, 2018 @08:32PM
(#16615368)
I actually do the same thing. Do the dependency install inside of a docker container in order to build the .zip. This is absolutely essential for compiled libraries in python or anything that involves postgresql. If you attempt to install psycopg on mac and then deploy that on lambda it will fail. So you either need a prebuilt version for ubuntu that you keep around, or you need to build in a docker container. We just build inside a docker container.
Re:AWS Lambda and .zip is a recipe for serverless success
by tracker1 on Monday March 19, 2018 @01:34PM
(#16620653)
Yeah, it works really well, also allows me to configure CI/CD in VSTS/TFS via Windows agents for AWS deploys to Lambda. In the end, I'm pretty pleased with it. I've mostly used Node, but Python binary dependencies would have the same need.
Not entirely sure why I got the downvote, other than the tongue in cheek aspect and "lol" at the end.