Back to Terragrunt

Root Terragrunt Hcl

docs/src/data/strict-controls/root-terragrunt-hcl.mdx

1.0.3859 B
Original Source

Throw an error when users try to reference a root terragrunt.hcl file using find_in_parent_folders.

This control will also try to find other scenarios where users may be using terragrunt.hcl as the root configuration, including when using commands like scaffold and catalog, which can generate a terragrunt.hcl file expecting a terragrunt.hcl file at the root of the project. Enabling this flag adjusts the defaults for those commands so that they expect a recommended root.hcl file by default, and will throw an error if a terragrunt.hcl file is explicitly set.

root-terragrunt-hcl - Reason

Using a root terragrunt.hcl file was previously the recommended pattern to use with Terragrunt, but that is no longer the case. For more information see Migrating from root terragrunt.hcl.