Debugging a stuck Terraform plan

While working on some Terraform today, I had a problem that it would hang in the plan stage. Adding the following setting to my provider block exposed the issue:

provider "aws" {
  # other settings
  max_retries = 1

Rather than retrying a flaky AWS API, it crashed immediately and told me which API had an issue.