gruntwork-io / boilerplate

A tool for generating files and folders ("boilerplate") from a set of templates
https://www.gruntwork.io
Mozilla Public License 2.0
157 stars 12 forks source link

Var files specified from the command line appear to be ignored in dependency processing #117

Closed yorinasub17 closed 1 year ago

yorinasub17 commented 1 year ago

If we don't specify live_vars.yaml in the dependency var_files attribute, variables will not be picked up from it during execution. We would like variables defined in live_vars.yaml specified with --var-file option to be picked up and have highest precedence - override variables defined elsewhere.

So variable would be first checked from template default, then from dependencies default (whether explicit default or referenced default) then checked from file default and then from file provided on command line. That gives us flexibility to provide var file on command line or not during execution and control how we get default values.