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.
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.