Jsonnet libraries to generate libraries and resources for Hashicorp's Terraform.
soy-gencan convert Terraform provider schemas into JSON schemas and generate Jsonnet libraries.soy-commonprovides common utility functions to work with the generated libraries.
Because it is fun... :)
Jsonnet is my go-to tooling to configure applications in Kubernetes but I needed something to manage the more low level resources that come before Kubernetes. Terraform is the de facto standard in this space, thus I wrote this generator so I could use the same language (jsonnet) to configure all my CSP resources.
This tool builds upon crdsonnet, which uses JSON schemas to generate Jsonnet code with astsonnet. However Terraform doesn't distribute JSON Schemas for the providers so I wrote a converter to aid in this. The converter builds upon docs and assumptions, so there may still be some mistakes there.