| ▲ | leetrout 3 days 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 3 days ago | parent [-] | ||||||||||||||||
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. | |||||||||||||||||
| |||||||||||||||||