3 ms·
My team does something similar to this. We write our Terraform configuration as Python literals with list comprehensions, conditional expressions, etc., then us
by leafmeal 5y ago
My team does something similar to this. We write our Terraform configuration as Python literals with list comprehensions, conditional expressions, etc., then use a script to dump it to JSON which the Terraform command line can parse.
Here's an example: https://github.com/DataBiosphere/azul/blob/develop/terraform/cloudwatch.tf.json.template.py https://github.com/DataBiosphere/azul/blob/develop/terraform...