nerdexam
HashiCorp

TA-002-P · Question #445

terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem? Error loading state: AccessDenied: Access Denied status code: 403…

The correct answer is A. Set TF_LOG=DEBUG. Terraform has detailed logs which can be enabled by setting the TF_LOG environment variable to any value. This will cause detailed logs to appear on stderr. You can set TF_LOG to one of the log levels (in order of decreasing verbosity) TRACE, DEBUG, INFO, WARN or ERROR to…

Implement and maintain state

Question

terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem? Error loading state: AccessDenied: Access Denied status code: 403, request id:

288766CE5CCA24A0, host id: FOOBAR

Options

  • ASet TF_LOG=DEBUG
  • BReview syslog for Terraform error messages
  • CRun terraform login to reauthenticate with the provider
  • DReview /var/log/terraform.log for error messages

How the community answered

(66 responses)
  • A
    80% (53)
  • B
    5% (3)
  • C
    12% (8)
  • D
    3% (2)

Explanation

Terraform has detailed logs which can be enabled by setting the TF_LOG environment variable to any value. This will cause detailed logs to appear on stderr. You can set TF_LOG to one of the log levels (in order of decreasing verbosity) TRACE, DEBUG, INFO, WARN or ERROR to change the verbosity of the logs.

Topics

#Debugging#State Management#Access Denied#Environment Variables

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice