You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INFO[0000] Downloading Terraform configurations from file:///my-home/terragrunt-info-test/config/module-a into /my-home/terraform.d/.terragrunt-cache/AnwNMwh9yg0XKSaMbmsxdNYr1BI/o12cAWD2nsVQ_xmslaEWdI5j6Fs prefix=[/my-home/terragrunt-info-test/config/module-a]
Initializing the backend...
Initializing provider plugins...
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Changes to Outputs:
+ result = "abc"
You can apply this plan to save these new output values to the Terraform
state, without changing any real infrastructure.
─────────────────────────────────────────────────────────────────────────────
Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.
Failing: cd config/module-b && terragrunt terragrunt-info
terragrunt terragrunt-info
ERRO[0000] /my-home/terragrunt-info-test/config/module-a/terragrunt.hcl is a dependency of /my-home/Developer/oss/terragrunt-info-test/config/module-b/terragrunt.hcl but detected no outputs. Either the target module has not been applied yet, or the module has no outputs. If this is expected, set the skip_outputs flag to true on the dependency block.
ERRO[0000] Unable to determine underlying exit code, so Terragrunt will exit with error code 1
Expected behavior
terragrunt-info should use the mock outputs when running
Versions
Terragrunt version: 0.54.12
Terraform version: 1.6
Environment details (Ubuntu 20.04, Windows 10, etc.):
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.
The text was updated successfully, but these errors were encountered:
Describe the bug
terragrunt-info fails to work with mock outputs of a dependency
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.
The text was updated successfully, but these errors were encountered: