4 ms·
CDKTF is very painful! I am using it with Go on a pilot and HCL feels so much comfy and easier to read!
by nikolay 4y ago
CDKTF is very painful! I am using it with Go on a pilot and HCL feels so much comfy and easier to read!
- Spivak 4y agoI can agree that for basic stuff HCL cuts a little more to the core because you don’t have the programming language boilerplate around it but to me it reads the same except things like conditional and loops are a lot more natural. Just being able to DRY your code and write tests is already worth the cost of admission for me.
- nikolay 4y agoIt can't be DRY and modular with CDKTF though - you can't really put components into Go modules, for example, so, you still get a monolithic codebase unless you use Go as glue code and put all the IaC in Terraform modules. I think Pulumi is better in that regard and those who don't want to use a programming language can use the new Pulumi YAML. I do use CDKTF where Terraform lacks: dynamic providers and dynamic resource names. For anything else, modular Terraform code does that and does it better, and it's more readable and works with the existing Terraform ecosystem of Terraform Cloud, linters, security scanners, drift detectors, etc.