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 →
- Lower
-parallelism(for example-parallelism=5). - Raise the provider's retry settings (
max_retries, and retry modeadaptivefor AWS). - 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.
More on Testing Upgrades and Large-Scale Operations
What does each of `terraform validate`, `plan` and `terraform test` actually check?BeginnerWrite a native test for a module that creates an encrypted S3 bucket.IntermediateCompare Terratest with `terraform test`.IntermediateReal-cloud integration tests leave orphaned resources when they fail midway. How do you handle that?AdvancedHow do you upgrade from Terraform 1.5 to 1.9 safely?IntermediateMajor AWS provider upgrade from v4 to v5 (or v5 to v6) across many stacks. How do you plan it?Advanced