#6748·terragrunt

Terragrunt catalog TUI reports `terragrunt.hcl` scaffolded when boilerplate template generates a different file

Author: ywarezkCreated Aug 26, 2026Updated Sep 11, 2026
Labelsbugcontributions-requestedpreserved

Describe the bug

When scaffolding a boilerplate template from the terragrunt catalog TUI, the post-scaffold success message refers to the wrong output file. It reports that terragrunt.hcl was scaffolded, even when the template actually generates different files and there are no terragrunt.hcl among them.

Steps To Reproduce

Catalog scaffold success message for boilerplate templates (gruntwork-io/terragrunt).

  1. In an empty directory (or any directory where you want the scaffold output), run:

    bash
    terragrunt catalog github.com/Nerdeez/terragrunt-catalog
  2. In the catalog TUI, open Templates and select a boilerplate template, for example:

    • Live root template (templates/root) — generates root.hcl
    • config (templates/config) — generates files under config/ (not terragrunt.hcl)
  3. Press s to scaffold into the current directory (.).

  4. Complete the scaffold prompts (fill in template variable values).

  5. Observe the success message shown after scaffolding completes.

  6. List the files that were actually created in the output directory (e.g. ls -la).

Expected behavior

After scaffolding a boilerplate template from the catalog TUI, the success message should reflect what was actually created—not assume terragrunt.hcl.

For example, when scaffolding the Live root template from github.com/Nerdeez/terragrunt-catalog, the message should indicate that root.hcl was generated (and any dependency outputs, such as config/), e.g.:

root.hcl scaffolded

./root.hcl
./config/common.hcl
./config/billing.hcl
./config/region.hcl

When scaffolding the config template alone, the message should list the files under config/ that were created, not terragrunt.hcl.

In general, the post-scaffold callout should name the file(s) produced by the template (or say something like “template scaffolded successfully” with an accurate list of generated paths), so users are not directed to open a file that does not exist.

Must haves

  • Steps for reproduction provided.

Nice to haves

  • Terminal output
  • Screenshots

Terminal output

Template (bug) — Live root template

Success message claims terragrunt.hcl was scaffolded:

╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                         │
│  terragrunt.hcl scaffolded                                                                              │
│                                                                                                         │
│  ./terragrunt.hcl                                                                                       │
│                                                                                                         │
│  Values you filled in the form are populated; unfilled inputs are marked with `# TODO: fill in value`.  │
│                                                                                                         │
│  Open the file and replace any remaining TODO placeholder with a real                                   │
│  value before running terragrunt.                                                                       │
│                                                                                                         │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Actual files on disk after scaffold (ls -la):

total 8
drwxr-xr-x@ 3 yarivkatz  staff    96 Aug 26 12:44 .
drwxr-xr-x@ 8 yarivkatz  staff   256 Aug 24 17:53 ..
-rw-r--r--@ 1 yarivkatz  staff  2609 Aug 26 12:44 root.hcl

No terragrunt.hcl — only root.hcl.

Versions

  • Terragrunt version: v1.1.3
  • OpenTofu/Terraform version: OpenTofu v1.10.7
  • Environment: macOS (darwin), zsh
  • Catalog: github.com/Nerdeez/terragrunt-catalog (main)