Hacker News new | ask | show | jobs
by 0xbadcafebee 1414 days ago
Or at least use CDKTF which allows you to code around problems, rather than bash your head against TF's awfulness. https://www.terraform.io/cdktf
1 comments

Wow, that's kind of cool. Didn't know about that.

It is me, or is it weird that this has a hard constructor dependency on Constructs[1], which is pretty much undocumented?

At least in golang, this brings in some other dependencies and golang init() reflect code [2], which then depends on interacting with javascript!? [3]... something smells odd here.

[1] https://github.com/aws/constructs-go

[2] https://github.com/aws/constructs-go/blob/main/constructs/co...

[3] https://github.com/aws/jsii/

"CDKTF uses Typescript types to generate an assembly file that jsii uses to generate the code bindings for the other supported languages."

Yep, sounds like Terraform-level awfulness. Although they actually took the design from AWS CDK, so I guess we can blame AWS for it.