lib/terraspace/compiler/strategy/tfvar/layer.rb
def tfvars_dir
      seed_dir = "#{Terraspace.root}/seed/tfvars/#{@mod.build_dir(disable_instance: true)}"
      mod_dir = "#{@mod.root}/tfvars"

      empty = Dir.glob("#{seed_dir}/*").empty?
      empty ? mod_dir : seed_dir
    end
# seed dir takes higher precedence than the tfvars folder within the stack module. Example:
#
#     seed/tfvars/stacks/demo (folder must have *.tfvars or *.rb files)
#     app/stacks/demo/tfvars
#
# This allows user to take over the tfvars embedded in the stack if they need to. Generally,
# putting tfvars in within the app/stacks/MOD/tfvars folder seems cleaner and easier to follow.
#
# Will also consider app/modules/demo/tfvars. Though modules to be reuseable and stacks is where business logic
# should go.
#
seed dir takes higher precedence than the tfvars folder within the stack module.

This allows user to take over the tfvars embedded in the stack if they need to. Generally,
putting tfvars in within the app/stacks/MOD/tfvars folder seems cleaner and easier to follow.

Will also consider app/modules/demo/tfvars. Though modules to be reuseable and stacks is where business logic
should go.
seed dir takes higher precedence than the tfvars folder within the stack module . This allows user to take over the tfvars embedded in the stack if they need to . Generally putting tfvars in within the app / stacks / MOD / tfvars folder seems cleaner and easier to follow . Will also consider app / modules / demo / tfvars . Though modules to be reuseable and stacks is where business logic should go .
def tfvars_dir
      seed_dir = "#{Terraspace.root}/seed/tfvars/#{@mod.build_dir(disable_instance: true)}"
      mod_dir = "#{@mod.root}/tfvars"
      empty = Dir.glob("#{seed_dir}/*").empty?
      empty ? mod_dir : seed_dir
    end
def tfvars_dir seed_dir = "#{Terraspace.root}/seed/tfvars/#{@mod.build_dir(disable_instance: true)}" mod_dir = "#{@mod.root}/tfvars" empty = Dir . glob ( "#{seed_dir}/*" ) . empty? empty ? mod_dir : seed_dir end
seed dir takes higher precedence than the tfvars folder within the stack module.
seed dir takes higher precedence than the tfvars folder within the stack module .