Terraform Logging

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

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

Flashcards are hidden until you start studying

Use Quizgecko on...
Browser
Browser