-
-
Notifications
You must be signed in to change notification settings - Fork 999
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
-out not working when redirecting terragrunt STDERR #3708
Labels
awaiting response
Waiting for a response or more data from issue reporter
bug
Something isn't working
Comments
I tried to reproduce locally without success, @Erbrowl . Do you mind sharing a fixture that can reproduce the issue you're experiencing? $ terragrunt --version
terragrunt version v0.71.5 $ fd -tf -x bash -c 'echo "# {}" && cat {} && echo'
# ./mise.toml
[tools]
terragrunt = "0.71.5"
# ./main.tf
resource "null_resource" "empty" {
triggers = {
always_run = timestamp()
}
provisioner "local-exec" {
command = "echo 'Hello, World!'"
}
}
# ./terragrunt.hcl $ terragrunt plan -out plan.tfplan 2> errors.txt
10:56:01.548 STDOUT tofu: OpenTofu used the selected providers to generate the following execution
10:56:01.548 STDOUT tofu: plan. Resource actions are indicated with the following symbols:
10:56:01.548 STDOUT tofu: + create
10:56:01.548 STDOUT tofu: OpenTofu will perform the following actions:
10:56:01.548 STDOUT tofu: # null_resource.empty will be created
10:56:01.548 STDOUT tofu: + resource "null_resource" "empty" {
10:56:01.548 STDOUT tofu: + id = (known after apply)
10:56:01.548 STDOUT tofu: + triggers = {
10:56:01.548 STDOUT tofu: + "always_run" = (known after apply)
10:56:01.548 STDOUT tofu: }
10:56:01.548 STDOUT tofu: }
10:56:01.548 STDOUT tofu: Plan: 1 to add, 0 to change, 0 to destroy.
10:56:01.548 STDOUT tofu:
10:56:01.548 STDOUT tofu: ─────────────────────────────────────────────────────────────────────────────
10:56:01.548 STDOUT tofu: Saved the plan to: plan.tfplan
10:56:01.548 STDOUT tofu: To perform exactly these actions, run the following command to apply:
10:56:01.548 STDOUT tofu: tofu apply "plan.tfplan" $ eza -la plan.tfplan
.rw-r--r--@ 2.0k yousif 10 Jan 10:56 plan.tfplan
$ eza -la errors.txt
.rw-r--r--@ 2.4k yousif 10 Jan 10:56 errors.txt
|
yhakbar
added
the
awaiting response
Waiting for a response or more data from issue reporter
label
Jan 10, 2025
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
awaiting response
Waiting for a response or more data from issue reporter
bug
Something isn't working
Describe the bug
When redirecting STDERR, -out CLI option doesn't generate and output file with plan info.
Steps To Reproduce
Expected behavior
Creation of
-out
specified output plan file and redirection of STDERR to file working at the same time.Nice to haves
Versions
Additional context
Same with or without
--terragrunt-forward-tf-stdout
flagThe text was updated successfully, but these errors were encountered: