3 ms·
> 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'
by OJFord 4y ago
> 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'?
- nirga 4y agoNot 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”
- OJFord 4y agoHow 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?
- Garlef 4y agoSry. 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)