I have a two directories: in first one I'm keeping modules (basically terraform template configurations) in the second one I'm keeping terragrunt modules implementations. In the second one there is a terragrunt hcl file with inputs
inside (one for every particular project). So far I declared variables in modules directory (in variables.tf
) but I don't like that as variables change depending on the implementation (project). So keeping all variables (for all projects) in the modules dir seems to be not the best idea.
My question is: how can I declare those variables on the terragrunt (aka implementations) level? Is a generate
function way to go?