Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-out not working when redirecting terragrunt STDERR #3708

Open
1 task
Erbrowl opened this issue Dec 24, 2024 · 2 comments
Open
1 task

-out not working when redirecting terragrunt STDERR #3708

Erbrowl opened this issue Dec 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Erbrowl
Copy link

Erbrowl commented Dec 24, 2024

Describe the bug

When redirecting STDERR, -out CLI option doesn't generate and output file with plan info.

Steps To Reproduce

# Creates plan.tfplan with plan info
terragrunt plan -out=plan.tfplan

# Doesn't create plan.tfplan, still redirects STDERR to errors.txt
terragrunt plan -out=plan.tfplan 2> errors.txt

Expected behavior

Creation of -out specified output plan file and redirection of STDERR to file working at the same time.

Nice to haves

  • Terminal output :
Saved the plan to: plan.tfplan

To perform exactly these actions, run the following command to apply:
    terraform apply "plan.tfplan"

Versions

  • Terragrunt version: 0.71.1
  • OpenTofu/Terraform version: 1.10.3
  • Environment details: Debian docker container & WSL distro

Additional context

Same with or without --terragrunt-forward-tf-stdout flag

@Erbrowl Erbrowl added the bug Something isn't working label Dec 24, 2024
@wakeful
Copy link
Contributor

wakeful commented Dec 24, 2024

can you try this? should work in v0.71.0+

@Erbrowl
Copy link
Author

Erbrowl commented Dec 24, 2024

can you try this? should work in v0.71.0+

The redirection works properly, with and without --terragrunt-forward-tf-stdout flag.

The issue is more about the -out= not generating an output file in this specific case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants