4 ms·
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 prefere
by leetrout 10mo ago
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.
- Duologic 10mo agoAny 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 https://github.com/Duologic/soysonnet Example lib here: https://github.com/Duologic/soysonnet-aws https://github.com/Duologic/soysonnet-aws I only needed it for AWS so I didn't spend more time on it.