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

Add ability to set TF_LOG #5

Closed
scott1138 opened this issue Apr 16, 2018 · 2 comments
Closed

Add ability to set TF_LOG #5

scott1138 opened this issue Apr 16, 2018 · 2 comments

Comments

@scott1138
Copy link

I'm new the the VSTS deployment process but pretty good with PowerShell. It should be pretty easy to add by implementing a picklist with the different TF_LOG options defaulting to ERROR and then adding something like this to the invoke-terraform:

$tf_log = Get-VstsInput -Name tf_log
[Environment]::SetEnvironmentVariable("TF_LOG", $tf_log, "Process")

I would do this myself, but I am not entirely sure how to go about it.

@tevert
Copy link
Owner

tevert commented May 14, 2018

Hey @scott1138 -

I've done a bit of testing and this actually works already by providing TF_LOG as a release variable. The Powershell runner task that this inherits from automatically pulls in release variables as environment variables.

image

Re-open and let me know if you're having more problems with that!

@tevert tevert closed this as completed May 14, 2018
@scott1138
Copy link
Author

scott1138 commented May 14, 2018 via email

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

No branches or pull requests

2 participants