You attempted to run terragrunt in a folder that does not contain a terragrunt.hcl file
Fixes Terragrunt's 'You attempted to run terragrunt in a folder that does not contain a terragrunt.hcl file' during run --all. Use when a dependency was deleted in the same diff and run --all crashes while find/list look healthy. Not for genuinely missing unit configs.
TL;DR: A unit you deleted is still referenced by a dependency block in a live unit. run --all crashes on the dangling reference while find/list silently skip it and look healthy. Remove or update the stale dependency block (or restore the unit), then re-run.
ERROR You attempted to run terragrunt in a folder that does not contain a terragrunt.hcl file. Please add a terragrunt.hcl file and try again.
Path: "[repo]/dep/terragrunt.hcl"Steps
- Note the Path in the error: that's the DELETED dependency's directory, not the broken unit.
Expected: the path doesn't exist on disk.
- Find who still points at it:
grep -rn 'config_path.*dep' --include=terragrunt.hcl --include=root.hcl --include=terragrunt.stack.hcl .(adjust the name).
Expected: one or more live units with a dependency block aimed at the deleted dir.
- Fix each stale reference: delete the
dependencyblock if nothing needs it, point it at the replacement unit, or restore the deleted unit's directory.
Expected: no references to missing directories remain.
- Re-run
terragrunt run --allwith the same filter.
Expected: relationship resolution succeeds; the crash is gone.
When this applies
run --allcrashes with this error right after a diff that deleted a unit directory.terragrunt find/terragrunt listwith the same filter report no problems.
When it doesn't apply
- Running a single unit in a directory that genuinely has no
terragrunt.hcl: just add the file. - The path exists but fails to parse: that's a config error, not a deletion.
Tool versions
Terragrunt 1.x (reported on 1.1.1).
Why it happens
find/list use parse-error suppression internally, so an unresolvable dependency is quietly dropped from their output. run --all's relationship-resolution phase does not suppress the same error and hard-fails the entire invocation instead of skipping the broken edge.
Edge cases
- Don't "fix" this by re-creating an empty directory at the path: an empty
terragrunt.hclthere changes the dependency graph silently. Fix the reference instead. - In CI, run the pre-flight
findAND arun --all planon the merge commit, not just the diff range, so deleted-unit references surface before they crash the real run.
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.