News for hackers. Stuff that matters.
Re:Using Actual Code for IaC by antihero on Friday April 29, 2022 @05:29PM (#31210781)
Hasn’t Amazon been doing this with the CDK for a while? I really enjoy it!
Re:Using Actual Code for IaC by coredog64 on Friday April 29, 2022 @05:48PM (#31210941)
I think the difference is that CDK “compiles” down to CloudFormation. Whatever you do it still has to be valid compared to a random application that can do whatever whenever. OFC I’m ignoring the way CDK makes it easier to use (and sometimes encourages) custom providers backed by Lambdas.
Re:Using Actual Code for IaC by rk2 on Friday April 29, 2022 @06:01PM (#31211085)
Agree and also have to consider that there is a need for solutions for cloud providers other than amazon.
Re:Using Actual Code for IaC by disposedtrolley on Friday April 29, 2022 @06:24PM (#31211295)
Have a look at CDKTF [1]. It’s a wrapper around Terraform that lets you use CDK-style semantics that compiles down to a Terraform plan. Every Terraform provider can generated into a CDKTF library.

[1] https://learn.hashicorp.com/tutorials/terraform/cdktf