News for hackers. Stuff that matters.
Re:AWS Lambda Terraform Cookbook with working examples by flurie on Wednesday December 30, 2020 @10:30PM (#25589284)
Lambda provides a particular challenge for Terraform. You don't normally see Terraform used as a deployment tool for containerized services, even though it could theoretically do that. But because it's the only thing close to the lambdas unless you want to introduce another third party tool, deployment ends up falling to it as well, unless you decide to choose another tool for the lambdas, like serverless or CloudFormation, and then you've got a bad build tool or a bad deployment tool for anything but the most trivial lambda builds.

And I will continue to be sad that all of the higher order first party tooling is ultimately going to be based on CloudFormation (looking at you, https://aws.amazon.com/proton/).

Ultimately, after having used Terraform to manage function code bundling/deployment and skipping Terraform completely for the lambdas, I think Terraform does best when it manages the infrastructure lifecycle for lambdas and nothing else. You can then rely on more competent tooling for deployment.

Re:AWS Lambda Terraform Cookbook with working examples by lukevp on Wednesday December 30, 2020 @11:39PM (#25589647)
Have you taken a look at CDK and CDK-TF? It lets you programmatically generate terraform templates (or cloudformation with plain CDK) from other languages.
Re:AWS Lambda Terraform Cookbook with working examples by arman_ashrafian on Thursday December 31, 2020 @01:40AM (#25590184)
I have been using CDK at work and it is fantastic. It feels like React for Infrastructure. I used to write raw Cloudformation at my last internship, and being able to write Typescript instead feels like moving from assembly language to C.
Re:AWS Lambda Terraform Cookbook with working examples by kevinsundar on Thursday December 31, 2020 @02:00AM (#25590291)
I've been using CDK too at work (work at Amazon) and I feel like its the future of infrastructure provisioning. I can tell you that its a first class product with tons of internal use so it will only get better.

If you are all in on AWS its a no-brainer.

Re:AWS Lambda Terraform Cookbook with working examples by wikibob on Thursday December 31, 2020 @02:27AM (#25590428)
In which language? Is there still significant gaps between languages?
Re:AWS Lambda Terraform Cookbook with working examples by mxz3000 on Thursday December 31, 2020 @05:33AM (#25591446)
Typescript is the best supported language.