Hi, I remember seeing somewhere that you can put ruby files into the tfvars folder and terraspace will execute them during the build (i can see from the sourcecode that .rb files are supported alongside .tfvars). I’ve got this to work and can see that my ruby is processed during the build, but it results in an empty json file. My knowledge of ruby isn’t great and for the life of me I cannot work out what I need to put in there to get even an empty json object outputted.
For reference I’m trying to use the power of layering and ruby to store module versions under the tfvars folder alongside the configuration and a custom-helper to output the pre-loaded version details. This allowed me to leverage the inbuilt layering and seemed a better option than having the helper try and find/read a separate config file