Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How does this handle dependencies, for example if I'm working on a python project and I need to run a pip install. I will give you money if you can automate getting those python dependencies up into a lambda function.

If you can do this reliably, and pass corporate venting, you easily have a product worth millions.

On the other hand, if this gets popular Amazon can easily just clone the product and integrate it directly. You'll know it's a good idea then.

Edit : MIT ! Awesome, thanks for the donation to The Open source community. If I ever use this in a real project I'll go ahead and donate a few bucks.



Please forgive me if I am misunderstanding the problem, but we approach this using Docker now that Lambda supports container images for packaging. Our process is to just put all that sort of stuff in the Dockerfile, run docker build, push the result up to ECR, and point Lambda to the new version.


Lambda layers is another option.


We'll be looking at Python in the coming weeks, currently it's JS and TS only.

But the way this works locally (for Node) is that you do an npm install just as you would and it executes your application locally. The packaging part comes into play when deploying these functions to AWS. And I agree that portion even for Node isn't bullet proof. It's something we want to do a better job of.


Wait so you automatically deploy the lambda dependencies for me. The other issue I run into is occasionally you have to split npm packages into different layers when you deploy lambdas. I don't have time personally to contribute, but I hope you're able to develop this into something which becomes a part of my workflow.


So the `sst start` command fires up a local environment but it doesn't deploy your functions. Instead it'll run it locally when it gets invoked.

But when you `sst deploy` it, we'll package your functions. To do this we use esbuild (https://esbuild.github.io), it's like Webpack but 10x faster. It'll generated a single js file that should be fairly small and you shouldn't have to use Layers.

However, this isn't bullet proof. There are some dependencies that are not compatible with esbuild/webpack, and you'll end up having to zip them up as a directory. That's something we are going to work to improve in the future.


Not to downplay Serverless Stack, but the AWS CDK does this for you: https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-p...


Not at all! SST is built on CDK. So anything you can do in CDK, will also work in SST.


you can do 99% with pipreqs . && pip install -t . -r requirements.txt




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: