Settings

Theme

Ask HN: How are you deploying your lambdas these days?

7 points by _samjarman 2 years ago · 15 comments · 1 min read


Noting that The Serverless Framework V4 is changing licensing models, has anyone found any alternates? Built their own?

ivylee 2 years ago

I've been using AWS Chalice[1] (Python), which powers SignalsTalk[2], YCVerify[3] and AirExif[4].

[1]: https://github.com/aws/chalice

[2]: https://www.signalstalk.com/

[3]: https://www.ycverify.com/

[4]: https://www.airexif.com/

giorgioz 2 years ago

I switched from the Serverless Framework to AWS-CDK 5 years ago https://aws.amazon.com/cdk/

I use the Javascript library of aws-cdk

fitzgera1d 2 years ago

Serverless Framework V.4 looks awesome actually: https://www.youtube.com/watch?v=UQL_PPJUFOU

solardev 2 years ago

Related discussion: https://news.ycombinator.com/item?id=40589152

thorin 2 years ago

Can you briefly explain what you think the issues are? I'm just moving from azure functions over to lambda. Code will likely be dotnet and I just assumed I'd use the aws provided tools: codecommit/build/pipeline/deploy. Azure devops did the job fine last time.

solardev 2 years ago

Vercel / Next has them built into the framework these days. You just write a function and it deploys automagically with the rest of the frontend. I think they use Cloudflare Workers for that instead of AWS...? Not sure.

https://vercel.com/docs/functions

  • vunderba 2 years ago

    That sounds right to me though I always deploy my nextJS projects on a VPS, so it just transforms them behind the scenes to the equivalent of self hosted node hosted "lambdas" - only without the associated more aggressive timeouts around Vercel unless you're a paying customer.

dj0k3r 2 years ago

I've been using AWS CDK which now supports go. The only gotcha is that I have to cleanup the build cache occasionally which can easily build up-to several gigs over time.

rozenmd 2 years ago

My business has about a dozen lambdas that I configure using terraform, and to deploy I use a regular CI service with the AWS CLI installed.

Been working great for about 3.5 years now

whinvik 2 years ago

At least for Python, it's usually easy. Just build a Docker image and push from Github action after merge and it's deployed.

metatranca 2 years ago

For JS I use https://github.com/vercel/ncc

khalidx 2 years ago

We’re building https://rx.run so you don’t have to think about these sorts of things and can just ship your app.

If you can write a function, you can deploy to the cloud. No infra or deployments to configure or manage. Storage, auth, payments, and more are all built right in.

Currently in beta and TypeScript only but support for all mainstream languages coming soon.

  • khalidx 2 years ago

    I wanted to expand and say that if you are keen on writing and managing infra and running it yourself, besides Serverless Framework, SST, CDK, arc.codes, and Terraform are all good options.

TheJCDenton 2 years ago

AWS SAM. I'm using Go.

  • Something1234 2 years ago

    SAM is probably my favorite way to do it myself. Easy enough to wrap your function up however you please and it automatically handles zipping for me. Can even do layers for my dependencies.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection