Debug terraform settings this variables:

export TF_LOG_PATH="/tmp/terraform.log"
export TF_LOG="DEBUG"

Then run terraform as always:

$ terraform plan ...