The Wayback Machine - https://web.archive.org/web/20201110205625/https://github.com/gruntwork-io/terragrunt/issues/1213
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

terragrunt not showing output from terraform -version #1213

Open
dmead opened this issue Jun 8, 2020 · 3 comments
Open

terragrunt not showing output from terraform -version #1213

dmead opened this issue Jun 8, 2020 · 3 comments

Comments

@dmead
Copy link

@dmead dmead commented Jun 8, 2020

during any terragunt action it will show this line

> terragrunt plan
2020/06/08 12:12:26 Running command: terraform --version

and doesn't show the terraform version. this makes it hard to debug some language issues because I'm not sure what terragrunt is actually running. should this be printing a version string?

@yorinasub17
Copy link
Member

@yorinasub17 yorinasub17 commented Jun 9, 2020

We deliberately don't print out the terraform version as it is not necessary in the logs, but I can see how that might be useful. I think we can use util.Debugf in cli.PopulateTerraformVersion to only log the terraform version when in debug logging mode. Would you be up for a PR to add this in?

@dudicoco
Copy link

@dudicoco dudicoco commented Jun 11, 2020

@yorinasub17 why are you running terraform --version then?

@yorinasub17
Copy link
Member

@yorinasub17 yorinasub17 commented Jun 11, 2020

To enforce terraform version constraints (tg 0.19+ only works with terraform 0.12+ by default, but is customizable with terraform_version_constraint).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.