Terragrunt: Hide terragrunt output

Created on 28 Jun 2017  路  3Comments  路  Source: gruntwork-io/terragrunt

Is there a way/flag to disable terragrunt output and only see terraform output?

enhancement help wanted

Most helpful comment

At the mean time I'll just do something like this: terragrunt plan 2>&1 | grep -v 'terragrunt'

All 3 comments

Currently, no, but we should move Terragrunt to a better logger (e.g., logrus) that lets us control log levels. In the meantime, you could redirect stderr to /dev/null, since Terragrunt does all of its logging to stderr. However, any logging from Terraform itself that goes to stderr would also be lost...

At the mean time I'll just do something like this: terragrunt plan 2>&1 | grep -v 'terragrunt'

Not all of its logging goes to stderr...

bash-3.2$ terragrunt output Instance_ID 2>/dev/null
[INFO] Getting version from tgenv-version-name
[INFO] TGENV_VERSION is 0.25.5
...
Was this page helpful?
0 / 5 - 0 ratings