orange-cloudfoundry / terraform-release

Terraform bosh release. enables terraform automation from bosh
Apache License 2.0
1 stars 0 forks source link

terraform debug logs (opt-in or retry-with-log-on-failure) #12

Open gberche-orange opened 4 years ago

gberche-orange commented 4 years ago

expected behavior

As a terraform-release user

observed bevahior

No way to configure tf logs

Possible improvement

env var

Add a new property to declare additional enviromnent variables set before execution terraform binary

  terraform.env_vars:
    description:
      map of environment variables to declare prior to execute the job
   example:
     - TF_LOG: trace
     - CF_DEBUG: true
     - CF_TRACE: true

Note that the following yaml block is valid against YAML specs

retry on failure with verbose mode

  terraform.retry_on_failure_and_set_env_vars:
    description:
      map of environment variables to declare prior to retry a failed job execution
   example:
     - TF_LOG: trace
     - CF_DEBUG: true
     - CF_TRACE: true