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
This works, however it also prints the terraform output to the console in addition to the file, which I would not expect.
This is especially a problem if the terraform output values contain secrets, as these are displayed in plain text
The text was updated successfully, but these errors were encountered:
While I completely agree with the sentiment, I also want output written to file only and parse from there, the docs are quite clear that outputTo can only be used with the show or custom commands.
Options specific to show
outputTo*: (console or file). You can choose to save output to file or only show output in console (i.e log)
outputFormat*: (json or default) . Output in json or default format
Options specific to custom
When selecting custom you can use any command that is supported natively by terraform.
customCommand*: pass any command that is supported natively by terraform
outputTo*: (console or file).You can choose to save output to file or only show output in console (i.e log)
Just to be clear, you can achieve the desired behavior with the following code, but I agree with OP that hiding console output would provide clearer semantics.
Hi , I am using a the custom command and have outputTo: 'file' but I cant see a file being created. Is it outputting it to the same directory or a different one ?
We're using the below to output
terraform output
to a file:This works, however it also prints the terraform output to the console in addition to the file, which I would not expect.
This is especially a problem if the terraform output values contain secrets, as these are displayed in plain text
The text was updated successfully, but these errors were encountered: