Describe the solution you'd like
I would like to be able to have some dynamic logic in my imported terragrunt file based on the module that is calling it.
The idea is to be able to do things like set what generate blocks are enabled/disabled, which files get loaded, and to control other logic with conditionals based on things set by the caller.
Describe alternatives you've considered
Creating a module.hcl file that is read in by the root file. This will 100% work but requires maintaining another file alongside the terragrunt.hcl file in each folder.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for raising this issue.
Describe the solution you'd like I would like to be able to have some dynamic logic in my imported terragrunt file based on the module that is calling it.
The idea is to be able to do things like set what
generate
blocks are enabled/disabled, which files get loaded, and to control other logic with conditionals based on things set by the caller.Super simple (and not terribly useful) example:
module/terragrunt.hcl
:terragrunt_root.hcl
:Describe alternatives you've considered Creating a
module.hcl
file that is read in by the root file. This will 100% work but requires maintaining another file alongside theterragrunt.hcl
file in each folder.module/module.hcl
:terragrunt_root.hcl
: