How can you enable verbose logging to troubleshoot Terraform?
A.
Set the log level command-line flag.
B.
Set the TF_LOG environment variable.
C.
Set the log level in your terraform block.
The Answer Is:
B
This question includes an explanation.
Explanation:
Detailed Explanation:
Rationale for Correct Answer: Terraform logging is enabled by setting the TF_LOG environment variable. Common values include TRACE, DEBUG, INFO, WARN, and ERROR. For example: export TF_LOG=DEBUG.
Analysis of Incorrect Options (Distractors):
A. Set the log level command-line flag. Incorrect. Terraform does not use a general CLI flag for verbose log level control.
C. Set the log level in your terraform block. Incorrect. Logging is not configured in the Terraform configuration block.
Key Concept: Terraform troubleshooting logs are controlled through environment variables.