Open veziak opened 1 year ago
Just to check, are you on tfexec v0.18.1? There was a bug in this functionality in v0.18.0.
yep, I've seen that issue and double checked the version, it's v0.18.1
and terraform version: Terraform v1.4.1 on linux_amd64
Hi All, I'm trying to get what terraform writes to stdout and stderr and wrote the following code:
I tried to test it on a terraform code that should fail when 'terraform init' executed:
if I run 'terraform init' in terminal I get the following in stdout:
and in stderr:
If I try to run terraform with terraform-exec I get stdout printed as expected, but stderr is empty. If I change
tf.SetStderr(stderr)
totf.SetStderr(os.Stderr)
then I can see stderr printed. Do I miss something or stderr can be written only to os.Stderr ?