---
layout: post
title: Debugging a stuck Terraform plan
summary: If a 'terraform plan' hangs, adding 'max_retries = 1' can sometimes expose the issue.
tags: terraform aws
theme:
  minipost: true
---

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:

```hcl
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.

Add a quick post about debugging a stuck TF plan
Add a quick post about debugging a stuck TF plan
