A Lambda-based API starts returning 429 "Rate Exceeded" and logs show `TooManyRequestsException` during a marketing campaign.
IntermediateTroubleshootingCloud provider issues
Answer
Likely causes → Lambda hit its concurrency limit: the account's regional limit (1,000 by default), or the function's reserved concurrency. Another function with large reserved concurrency can also starve the unreserved pool your API depends on.
Diagnose →
aws lambda get-account-settings --query 'AccountLimit'
aws lambda get-function-concurrency --function-name api
aws cloudwatch get-metric-statistics --namespace AWS/Lambda --metric-name ConcurrentExecutions \
--statistics Maximum --period 60 --start-time $(date -u -d '-1 hour' +%FT%TZ) --end-time $(date -u +%FT%TZ)
Check the Throttles metric per function.
Fix → Raise reserved concurrency for the API function, lower it for background functions, and request an account limit increase. Reduce duration (it multiplies concurrency: RPS × seconds).
Prevent → Alarm on Throttles > 0 and on account concurrency above 80%, set API Gateway throttling to protect downstream, and use provisioned concurrency for predictable peaks.
More on Cloud provider issues
A deploy script and several services start failing with "An error occurred (ThrottlingException) when calling the DescribeInstances operation: Rate exceeded".BeginnerThe Auto Scaling group can't launch new instances during a traffic spike; activity history says "We currently do not have sufficient c6i.4xlarge capacity in the Availability Zone you requested."BeginnerScaling out fails with "You have requested more vCPU capacity than your current vCPU limit of 256 allows for the instance bucket that the specified instance type belongs to."BeginnerThe AWS Health Dashboard reports increased error rates in `use1-az4`, and your ALB targets in that AZ are timing out intermittently.IntermediateServices in private subnets randomly fail outbound calls to a partner API; CloudWatch shows `ErrorPortAllocation` rising on the NAT gateway.AdvancedA data pipeline writing millions of small objects to S3 starts failing with "503 Slow Down: Please reduce your request rate."Intermediate