Terraform Logging
5 Questions
3 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which environment variable can be set to enable detailed logs in Terraform?

  • TF_DEBUG
  • TF_LOG_ENABLED
  • TF_LOG (correct)
  • TF_LOG_LEVEL

What are the available log levels in Terraform, in order of decreasing verbosity?

  • ERROR, WARN, INFO, DEBUG, TRACE
  • INFO, DEBUG, TRACE, WARN, ERROR
  • DEBUG, TRACE, INFO, WARN, ERROR
  • TRACE, DEBUG, INFO, WARN, ERROR (correct)

When TF_LOG is set to JSON, at what log level are the logs outputted?

  • WARN
  • DEBUG
  • INFO
  • TRACE (correct)

Which environment variables can be used to enable logging separately for terraform itself and the provider plugins?

<p>TF_LOG_CORE and TF_LOG_PROVIDER (C)</p> Signup and view all the answers

What environment variable can be set to persist logged output in a specific file when logging is enabled?

<p>TF_LOG_PATH (D)</p> Signup and view all the answers
Use Quizgecko on...
Browser
Browser