4 ms·
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 https://www.te
by 0xbadcafebee 4y 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 https://www.terraform.io/cdktf
- latchkey 4y agoWow, 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 https://github.com/aws/constructs-go [2] https://github.com/aws/constructs-go/blob/main/constructs/constructs.init.go https://github.com/aws/constructs-go/blob/main/constructs/co... [3] https://github.com/aws/jsii/ https://github.com/aws/jsii/
- 0xbadcafebee 4y ago"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.