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
--terragrunt-forward-tf-stdout option is not respected when plan is redirected to a plan file using -out planfile.txt
If plan file is then read with terragrunt show planfile.txt it contains STDOUT terraform information e.g.
terragrunt show planfile.txt 16:14:46.042 STDOUT terraform: Terraform used the selected providers to generate the following execution 16:14:46.044 STDOUT terraform: plan. Resource actions are indicated with the following symbols: ...
Steps To Reproduce
Generate any plan into a plan file with the option to print terraform output as is: terragrunt plan --terragrunt-forward-tf-stdout -out planfile.txt
Try reading it plan file: terragrunt show planfile.txt
Expected behavior
A plan file to have less verbose output similar to running terragrunt --terragrunt-forward-tf-stdout in cli without -out parameter.
Versions
Terragrunt version: 0.72.2
Terraform version: 1.9.8
Environment details (Ubuntu 20.04, Windows 10, etc.): MacOS 15.2
Additional context
--terragrunt-log-format bare has similar behavior - works when running interactively in cli, but is not respected when outputting into a plan file.
The text was updated successfully, but these errors were encountered:
The problem is likely that you aren't using --terragrunt-log-format bare for the show command. The show command is what actually renders STDOUT from the plan binary. Could you please confirm?
If you can confirm, please feel free to submit a pull request updating the docs to make sure that others aren't surprised by this behavior.
Describe the bug
--terragrunt-forward-tf-stdout
option is not respected when plan is redirected to a plan file using-out planfile.txt
If plan file is then read with
terragrunt show planfile.txt
it containsSTDOUT terraform
information e.g.terragrunt show planfile.txt 16:14:46.042 STDOUT terraform: Terraform used the selected providers to generate the following execution 16:14:46.044 STDOUT terraform: plan. Resource actions are indicated with the following symbols: ...
Steps To Reproduce
Generate any plan into a plan file with the option to print terraform output as is:
terragrunt plan --terragrunt-forward-tf-stdout -out planfile.txt
Try reading it plan file:
terragrunt show planfile.txt
Expected behavior
A plan file to have less verbose output similar to running
terragrunt --terragrunt-forward-tf-stdout
in cli without-out
parameter.Versions
Additional context
--terragrunt-log-format bare
has similar behavior - works when running interactively in cli, but is not respected when outputting into a plan file.The text was updated successfully, but these errors were encountered: