TF_LOG verbose Terraform output?
How do I get Coder to show verbose Terraform logs?
I'm trying to start a workspace but getting one of the Terraform AWS provider's less helpful error messages where it doesn't tell you what IAM action it doesn't have permission to complete:
When doing normal Terraform development and I run into this I get Terraform's verbose logs and trace the request id in the output to the API request, where I can then see the IAM action. I do this by setting the
TF_LOG=1
env var in my shell.
How might I do this in Coder?2 Replies
Okay turns out you can just set
TF_LOG=1
in the Coder server's environment and it will enable verbose Terraform outputMarked the thread as resolved.