gruntwork-io / terragrunt

Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.
https://terragrunt.gruntwork.io/
MIT License
8.01k stars 971 forks source link

Terraform output not shown for `run-all` commands #3463

Closed kayiplar closed 6 days ago

kayiplar commented 6 days ago

Describe the bug

It seems like the latest release introduced a bug where terraform output is not shown for the run-all command anymore. Maybe I am missing something?

Probably related:

Steps To Reproduce

Run terragrunt plan and terragrunt run-all plan with the new release v0.68.0.

➜ terragrunt plan                                                                  
15:18:16.293 STDOUT terraform: data.azurerm_resource_group.this: Reading...
15:18:17.043 STDOUT terraform: data.azurerm_resource_group.this: Read complete after 1s [id=...]
15:18:17.050 STDOUT terraform: azurerm_storage_account.this: Refreshing state... [id=...]
15:18:24.236 STDOUT terraform: No changes. Your infrastructure matches the configuration.
15:18:24.236 STDOUT terraform: Terraform has compared your real infrastructure against your configuration
15:18:24.236 STDOUT terraform: and found no differences, so no changes are needed.

vs.

➜ terragrunt run-all plan --terragrunt-non-interactive                             
15:18:32.932 INFO   The stack at . will be processed in the following order for command plan:
Group 1
- Module .

Expected behavior

Terraform logs are shown for run-all commands, just like in the previous release.

Nice to haves

Versions

Additional context

Add any other context about the problem here.

yhakbar commented 6 days ago

Hey, @kayiplar , this issue seems to be a bug with --terragrunt-non-interactive, rather than run-all.

We'll take a look and get a fix out ASAP.

kayiplar commented 6 days ago

@yhakbar Ah I see, works perfectly fine without the flag. Thank you for looking into it!

kayiplar commented 6 days ago

@yhakbar One more thing. This also works for some reason:

terragrunt run-all plan --terragrunt-non-interactive --terragrunt-log-disable
yhakbar commented 6 days ago

Fix pre-released in v0.68.1-beta2024101001.