Skip to content

Unrecoverable parse error for ./terragrunt.hcl: Could not find Terragrunt configuration settings in ./terragrunt.hcl #4983

@FlorinAndrei

Description

@FlorinAndrei

It will be hard to provide a minimal repro case here. But this is a file that works with 0.90.0 (and many versions before), but fails with 0.91.1. Since the error seems specific to 0.91, and is some kind of low-level error, I hope you won't need an elaborate repro mockup.

Here is the error:

18:25:54.487 DEBUG  Evaluated 1 locals (remaining 0): s3_name_prefix
18:25:54.490 DEBUG  Exposing include block 'root'
18:25:54.490 DEBUG  Found locals block: evaluating the expressions.
18:25:54.490 DEBUG  Evaluated 2 locals (remaining 0): base_source_url, tags_stub
18:25:54.490 DEBUG  Exposing include block 'compcommon'
18:25:54.491 DEBUG  Unrecoverable parse error for ./terragrunt.hcl: Could not find Terragrunt configuration settings in ./terragrunt.hcl
18:25:54.491 WARN   Parsing errors where encountered while discovering dependencies. They were suppressed, and can be found in the debug logs.
18:25:54.491 DEBUG  Errors: %!w(*errors.joinError=&{[0x1400040ba40]})
18:25:54.491 DEBUG  Provider cache service shutting down...
18:25:54.491 DEBUG  Provider cache service shutdown complete
18:25:54.491 INFO   Shutting down Terragrunt Cache server...
18:25:54.491 INFO   Terragrunt Cache server stopped
18:25:54.491 ERROR  Could not find Terragrunt configuration settings in ./terragrunt.hcl
18:25:54.639 ERROR  Unable to determine underlying exit code, so Terragrunt will exit with error code 1

Here is the file:

terragrunt.hcl.txt

In infrastructure-modules, the folder with the source code only has a very trivial "module" that doesn't really create anything, just has inputs and outputs.

main.tf.txt

root.hcl has the usual boilerplate code.

Let me know if you need anything else.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpreservedPreserved issues never go stale

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions