Skip to content

v0.70.0-beta2024120501

Pre-release
Pre-release
Compare
Choose a tag to compare
@yhakbar yhakbar released this 05 Dec 15:30
3bba7d0

Deprecation Notice

This release deprecates terragrunt.hcl as the idiomatic root of Terragrunt configurations.

Naming the file placed at the root of Terragrunt configurations terragrunt.hcl is a pattern that does not provide any functional advantage over calling it anything else (e.g. root.hcl), but does serve to provide additional confusion and risk to Terragrunt users, as they can easily use Terragrunt in such a way that it ends up treating the terragrunt.hcl file at the root as a unit instead of shared configuration.

This pattern is very longstanding in typical Terragrunt usage, so changing it can be difficult. To get the ball rolling on this, the behavior will be deprecated, but still supported for the near future (and for a pretty long time thereafter).

How this will be achieved

Terragrunt will now emit warnings whenever it detects that users are following a pattern indicating usage of a root terragrunt.hcl file.

The warning will look like this:

16:04:54.555 WARN   Using `terragrunt.hcl` as the root of Terragrunt configurations is an anti-pattern, and no longer recommended. In a future version of Terragrunt, this will result in an error. You are advised to use a differently named file like `root.hcl` instead. For more information, see https://terragrunt.gruntwork.io/docs/migrate/migrating-from-root-terragrunt-hcl

You can take a look at what those docs will look like here.

Those docs include information on a new Strict Control named root-terragrunt-hcl that will allow users to opt-in for a breaking change preventing usage of a root terragrunt.hcl.

Using this strict control will also update defaults for commands like scaffold and catalog so that they don't assume usage of a root terragrunt.hcl file.

Feedback Requested

You are encouraged to share your feedback on this pre-released change. You can either share your feedback via the associated GitHub Discussion, or you can share your feedback in our Discord.

Full Changelog: v0.69.7...v0.70.0-beta2024120501