Interview Prep/Terraform/Testing Upgrades and Large-Scale Operations

API rate limits cause "Throttling" errors during large applies. What do you do?

IntermediateScenarioTesting Upgrades and Large-Scale Operations
Answer

Situation read → Hundreds of parallel API calls hit account limits.

What I'd do →

  1. Lower -parallelism (for example -parallelism=5).
  2. Raise the provider's retry settings (max_retries, and retry mode adaptive for AWS).
  3. Split the state so fewer resources are touched at once.

Why → Terraform retries with backoff but needs headroom; less concurrency means fewer throttles.

Interview tip → Check if other tools hit the same account concurrently.

All Terraform questions Roadmap: Terraform in production

More on Testing Upgrades and Large-Scale Operations