terragrunt icon indicating copy to clipboard operation
terragrunt copied to clipboard

Remove need for repetitive boilerplate terragrunt.hcl

Open DevopsMercenary opened this issue 1 year ago • 1 comments

Describe the solution you'd like

I've been using Terragrunt for a while and it's really great and helpful.

But, I get tired of having to put the standard include to tell them to include the configuration from the root in every child.

repetitive "terragrunt.hcl"

include "root" {
  path = find_in_parent_folders()
}

There are now hundreds of these three line duplicate terragrunt.hcl files in my project. Repeating, adding this file over and over doesn't seem very DRY to me.

I would like to have added an ENVIRONMENT_VARIABLE flag or command line parameter, like --includerootpathfindinparentfolders, that when enabled or provided, Terragrunt would automatically perform the behavior as if the terragrunt.hcl file existed. The assumption would be that Terragrunt would start searching from the directory where Terragrunt was executed from.

Describe alternatives you've considered

I have not been able to think of any alternatives, nor find any existing option in the Terragrunt documentation

DevopsMercenary avatar Apr 19 '24 19:04 DevopsMercenary

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.

github-actions[bot] avatar Aug 12 '24 01:08 github-actions[bot]