Terraform has native support for templates but is limiting when it comes to templating complex json or yaml documents. Often, the configs need to be generated based on a multiple factors like the target environment, external constraints (think API calls) or in some cases requiring complex calculations based on some…