News for hackers. Stuff that matters.
Re:The future of Terraform CDK by leetrout on Wednesday December 10, 2025 @02:48PM (#46222692)
The often excluded option is dynamically generating JSON and feeding that to TF instead of HCL.

You can combine it with tools like Dhall or my personal preference Jsonnet instead of imperative languages for an interesting experience for reusable pieces outside of module concepts.

Re:The future of Terraform CDK by Duologic on Wednesday December 10, 2025 @06:13PM (#46225366)
Any particular libraries you use to generate TF-JSON from jsonnet?

I wrote a generator a little while ago that can create jsonnet libraries from the TF schemas: https://github.com/Duologic/soysonnet

Example lib here: https://github.com/Duologic/soysonnet-aws

I only needed it for AWS so I didn't spend more time on it.

Re:The future of Terraform CDK by leetrout on Wednesday December 10, 2025 @10:00PM (#46227144)
By hand :( But I like your project. Do you use Tanka?
Re:The future of Terraform CDK by Duologic on Thursday December 11, 2025 @04:37PM (#46237517)
I work at Grafana and did quite a bit of work on Tanka in the past, so yes.