Open caspar-ds opened 1 month ago
For information, 0.56.1
would successfully print the info, but would still exit 1
╰─ terragrunt terragrunt-info ─╯
ERRO[0000] Error: Unsupported attribute
ERRO[0000] on /***/config/module-b/terragrunt.hcl line 15:
ERRO[0000] 15: test_var = dependency.module_a.outputs.test_mock
ERRO[0000]
ERRO[0000] This object does not have an attribute named "test_mock".
{
"ConfigPath": "/***/config/module-b/terragrunt.hcl",
"DownloadDir": "/***/config/module-b/.terragrunt-cache",
"IamRole": "",
"TerraformBinary": "terraform",
"TerraformCommand": "terragrunt-info",
"WorkingDir": "/***/config/module-b"
}
ERRO[0000] /***/config/module-b/terragrunt.hcl:15,41-51: Unsupported attribute; This object does not have an attribute named "test_mock".
ERRO[0000] Unable to determine underlying exit code, so Terragrunt will exit with error code 1
Same thing happens with terragrunt show
- seems there's a handful of commands that aren't parsing the mock outputs
Describe the bug terragrunt-info fails to work with mock outputs of a dependency. This was fixed in #2885 and v0.56.1, however seems to have regressed at some point.
To Reproduce
Module A
Module B
Working:
cd config/module-b && terragrunt plan
Failing:
cd config/module-b && terragrunt terragrunt-info
Expected behavior terragrunt-info should use the mock outputs when running
Versions
Additional context The same happens with an initialised and applied module where the output is new and has not yet been applied and saved to state. This will result in the outputs object not containing any mock outputs.