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

If I give you a function that I want you to deploy to a lambda. Can you do this with a pure JS library?

No. Pulumi can do it but they have a compiler in the background. And you still need a lot of boilerplate devops stuff around it.

So if you already need a compiler to do the packaging, etc. why stop there. A lot of other tooling problems go away.

But yes, you'll be reinventing the wheel to some portion.



> If I give you a function that I want you to deploy to a lambda. Can you do this with a pure JS library? No.

I'm not sure if you're making some distinction I'm not following, but yes? One of them is called 'AWS SDK for JavaScript'?


Sry. I should have been more explicit:

Let's say you are writing JS and you have

`const handler = ...`

You can not do something like

`const lambda = deployLambda(handler)`

on the next line.

Instead you need a deployment package. And to build this, you need to leave JS and involve some CI code and some IaC tool.

But wing enables you to just do that. (seemingly, I've not tried it yet)


Not exactly, cause you need to manage state or something (you don’t want to reprovision every time you run the code probably). So you’ll need to do some sort of “compilation”


How does compilation remove the need to manage state? I'm not at all precious about JS, let's do it with the AWS SDK for C++ library instead?




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: