Skip to content

terragrunt 0.92.0#251336

Merged
BrewTestBot merged 2 commits intomainfrom
bump-terragrunt-0.92.0
Oct 27, 2025
Merged

terragrunt 0.92.0#251336
BrewTestBot merged 2 commits intomainfrom
bump-terragrunt-0.92.0

Conversation

@BrewTestBot
Copy link
Copy Markdown
Contributor

Created by brew bump


Created with brew bump-formula-pr.

Details

release notes
## 🛠️ Breaking Changes

Internal boilerplate dependency upgraded to v0.10.1

The templating engine (Boilerplate) used by the Terragrunt catalog and scaffold commands has been upgraded to v0.10.1.

As a consequence, the default behavior of scaffolding when using the catalog and scaffold commands has changed to allow for the use of Boilerplate hooks and shell commands (see hooks and helpers in Boilerplate documentation) by default.

Note that Boilerplate will ask for permission interactively by default to run said hooks and shell commands, and that the interactive prompt will propagate to Terragrunt users.

e.g.

$ terragrunt scaffold github.com/gruntwork-io/terragrunt//test/fixtures/scaffold/with-shell-commands
...
[boilerplate] 2025/10/24 13:44:56 Shell command details:
[boilerplate] 2025/10/24 13:44:56   Command: echo
[boilerplate] 2025/10/24 13:44:56   Arguments: [-n SHELL_EXECUTED_VALUE_1]
[boilerplate] 2025/10/24 13:44:56   Working Directory: /var/folders/x3/j561187d7bn7j25xf6hs73wr0000gn/T/scaffold3587887181/.boilerplate
Execute shell command? (y/a/n) :
$ terragrunt scaffold github.com/gruntwork-io/terragrunt//test/fixtures/scaffold/with-hooks
...
[boilerplate] 2025/10/24 13:48:27 Hook details:
[boilerplate] 2025/10/24 13:48:27   Command: echo
[boilerplate] 2025/10/24 13:48:27   Arguments: [BEFORE_HOOK_EXECUTED]
[boilerplate] 2025/10/24 13:48:27   Working Directory: /var/folders/x3/j561187d7bn7j25xf6hs73wr0000gn/T/scaffold4203613613/.boilerplate
Execute hook? (y/a/n) :

When using the --non-interactive flag, Terragrunt will skip prompts and allow hooks and shell commands automatically by default.

$ terragrunt scaffold github.com/gruntwork-io/terragrunt//test/fixtures/scaffold/with-hooks --non-interactive
...
[boilerplate] 2025/10/24 13:50:56 Executing hook (previously confirmed or all confirmed)
[boilerplate] 2025/10/24 13:50:56 Running command: echo BEFORE_HOOK_EXECUTED
BEFORE_HOOK_EXECUTED
...
[boilerplate] 2025/10/24 13:50:56 Executing hook (previously confirmed or all confirmed)
[boilerplate] 2025/10/24 13:50:56 Running command: echo AFTER_HOOK_EXECUTED
AFTER_HOOK_EXECUTED

If you would like to explicitly prevent this behavior, you can use the --no-hooks and --no-shell flags added to catalog and scaffold to explicitly prevent usage of these features:

$ terragrunt scaffold github.com/gruntwork-io/terragrunt//test/fixtures/scaffold/with-hooks --non-interactive --no-hooks --no-shell
...
[boilerplate] 2025/10/24 13:53:40 Hooks are disabled, skipping 1 hook(s)
...
[boilerplate] 2025/10/24 13:53:40 Hooks are disabled, skipping 1 hook(s)
13:53:40.141 INFO   Running fmt on generated code .
13:53:40.143 INFO   Scaffolding completed
$ terragrunt scaffold github.com/gruntwork-io/terragrunt//test/fixtures/scaffold/with-shell-commands --non-interactive --no-hooks --no-shell
...
[boilerplate] 2025/10/24 13:54:47 Shell helpers are disabled. Will not execute shell command '[echo -n SHELL_EXECUTED_VALUE_1]'. Returning placeholder value 'replace-me'.
[boilerplate] 2025/10/24 13:54:47 Shell helpers are disabled. Will not execute shell command '[echo -n SHELL_EXECUTED_VALUE_2]'. Returning placeholder value 'replace-me'.
[boilerplate] 2025/10/24 13:54:47 Hooks are disabled, skipping 0 hook(s)
13:54:47.356 INFO   Running fmt on generated code .
13:54:47.356 INFO   ./terragrunt.hcl was updated
13:54:47.356 INFO   Scaffolding completed

You can also set the no_hooks and no_shell attributes in your catalog config to have these set by default for all users of your project:

# root.hcl
catalog {
  no_shell = true
  no_hooks = true
}

⚠️ Remember that IaC configurations are inherently powerful, and should not be trusted blindly. Make sure that you review and trust template sources when generating templates using Terragrunt.

🧪 Experiments Updated

filter-flag experiment now supported in hcl commands

The --filter flag is now supported in hcl commands (validate and fmt) (remember that you must use the filter-flag experiment to try this).

e.g.

# Filter by path with glob patterns
terragrunt hcl validate --filter './prod/**'

# Filter by name
terragrunt hcl validate --filter 'app*'

# Exclude specific configurations
terragrunt hcl validate --filter '!./test/**'

# Combine filters with intersection (refinement)
terragrunt hcl validate --filter './prod/** | !name=legacy'

# Multiple filters with union
terragrunt hcl validate --filter 'app1' --filter 'app2'

When using the --filter flag for hcl fmt, filtering applies to files instead of units / stacks. Only file path filters are supported for the hcl fmt command.

# Format a particular file
terragrunt hcl fmt --filter './prod/app1/terragrunt.hcl'

# Format files matching a glob
terragrunt hcl fmt --filter './prod/**'

# Exclude specific configurations
terragrunt hcl fmt --filter '!./test/**'

🏎️ Performance Improvements

hcl fmt Performance Improved

The performance of the hcl fmt command has been improved substantially.

Screenshot 2025-10-27 at 10 15 56

Formatting files is now roughly twice as fast due to parallelization of file formatting, and optimizations used in file exclusion.

What's Changed

Full Changelog: gruntwork-io/terragrunt@v0.91.5...v0.92.0

View the full release notes at https://github.com/gruntwork-io/terragrunt/releases/tag/v0.92.0.


@github-actions github-actions bot added go Go use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels Oct 27, 2025
@github-actions
Copy link
Copy Markdown
Contributor

🤖 An automated task has requested bottles to be published to this PR.

Caution

Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Oct 27, 2025
@BrewTestBot BrewTestBot enabled auto-merge October 27, 2025 17:52
@BrewTestBot BrewTestBot added this pull request to the merge queue Oct 27, 2025
Merged via the queue into main with commit 34abb6f Oct 27, 2025
22 checks passed
@BrewTestBot BrewTestBot deleted the bump-terragrunt-0.92.0 branch October 27, 2025 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. go Go use is a significant feature of the PR or issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants