ljfranklin / terraform-resource

A concourse resource to create infrastructure via Terraform
MIT License
185 stars 85 forks source link

TF_LOG environment variable doesn't seem to work #171

Closed joshshand closed 2 years ago

joshshand commented 2 years ago

Have tried adding the following config at both a resource and job level of my pipeline:

env:
  TF_LOG: TRACE

I would have hoped to see the trace level log output in the UI from then on in but all I see if the standard plan. I see this flag is also referenced in a test here: https://github.com/ljfranklin/terraform-resource/blob/cadaa3ce340ed59b0fef24e3ff3e495bcd57119f/src/terraform-resource/out/out_test.go

Perhaps this is not the case and/or I am doing something stupid - I am new to Concourse.

I need to ideally be hands off to collect the trace logs as the issue is transient. I would enable the flag for a few days to try catch the error then remove it.

Any guidance would be appreciated!

joshshand commented 2 years ago

Sorry, this was me just doing something stupid. It does work as expected.