Interview Prep/Terraform/Authentication and Cloud API Errors

Applies fail randomly with `ThrottlingException: Rate exceeded` or `RequestLimitExceeded` in large stacks.

IntermediateTroubleshootingAuthentication and Cloud API Errors
Answer

Likely causes → Many resources refreshed/created in parallel (default 10), plus other tools hitting the same API.

Diagnose → TF_LOG=DEBUG shows retries; errors cluster on one service (Route 53, IAM, API Gateway have low limits).

Fix → Lower parallelism and raise retries:

terraform apply -parallelism=4
provider "aws" {
  max_retries = 25
}

Prevent → Split huge states; Route 53 and IAM-heavy stacks especially.

All Terraform questions

More on Authentication and Cloud API Errors