-
Notifications
You must be signed in to change notification settings - Fork 43
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
Missing TF_LOGs when expecting to receive them when creating an EKS Cluster #1617
Comments
It appears that the logs are coming through. If there is a specific activity you need to diagnose the provider that is still not coming through TF_LOG=TRACE please let us know so we can fix. Gory details of experiments attempted so far. There are several ways TF providers emit logs.
log.Printf("[WARN] ...") In the experiment conducted today I see tflog-style logs coming through, for example under
Also seeing log-style logs coming through, for example:
This entry originates from the following upstream code: log.Printf("[INFO] pulumi-aws: starting to validate credentials. " +
"Disable this by AWS_SKIP_CREDENTIALS_VALIDATION or " +
"skipCredentialsValidation option") To make triple-sure, I have instrumented the upstream provider to injected this code to into log.Printf("[WARN] EKS Cluster CREATE") And was able to observe it under TF_LOG=TRACE:
Looks like there is a limitation that the translated logs lose their level, which makes them less |
I'm testing pulumi-aws v6.18.0:
|
thanks, let me test as well to see if I am observing the same thing |
Bridge https://github.com/pulumi/pulumi-terraform-bridge/releases/tag/v3.69.0 improved log capture. First version of the provider having the fix: https://github.com/pulumi/pulumi-aws/releases/tag/v6.17.0 Thank you! |
Filed #1632 that logs aren't greppable by level. |
I am seeing the tf logs now. Just to make sure I have a clear understanding, I would likely expect to see this in any TF bridged provider version that is has a pulumi-terraform-bridge version < v3.69.0? |
Yes, after bridge v3.69.0 you should expect to see all the logs. Before v3.69.0 only |
Can we close the issue or you need some more functionality here? Appreciated! |
yep! I will close it out now. Thanks! |
What happened?
When attempting to use the
TF_LOG
environment variable, I was expecting to see resulting relevant log changes, but it doesn't appear to change the output of the logs. It seems the TF logs aren't being passed through.Example
Command Run
TF_LOG=INFO pulumi up --logtostderr --logflow -v=10 2> tf_info.txt
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: