terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem?
Error:
yaml
CopyEdit
Error loading state: AccessDenied: Access Denied
status code: 403, request id: 288766CE5CCA24A0, host id: web.example.com
Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.
When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?