templater can be used as a commmand line tool or as an api server.
You can provide a go template (text/template) or a hcl2 template with a JSON representation of your configuration and this tool will print the generated "file" on stdout.