SECURITY WARNING: Never run commands you don't understand. Always review code before execution. Use at your own risk.
Serverless New Added 29 September 2026

AWS Lambda: TooManyRequestsException: Rate Exceeded.

Lambda refused the invocation because the function hit its concurrency ceiling, which is the account's regional limit (1,000 by default, lower on new accounts) or the function's own reserved concurrency. It is a limit on requests running at the same moment, not requests per second, so a function that got slower can start throttling at the same traffic. The Reason field in the response says which limit it was.

Quick fix

Read the commands before running them. Anything that restarts a service, deletes data or changes permissions should be tried on a non-production system first.

Quick fix
# Is it the function's reserved limit or the account limit?
aws lambda get-function-concurrency --function-name my-fn
aws lambda get-account-settings --query 'AccountLimit.ConcurrentExecutions'

# Throttles and concurrency over the last hour
aws cloudwatch get-metric-statistics --namespace AWS/Lambda \
  --metric-name Throttles --dimensions Name=FunctionName,Value=my-fn \
  --start-time $(date -u -d '-1 hour' +%FT%TZ) --end-time $(date -u +%FT%TZ) \
  --period 60 --statistics Sum

# Reserved concurrency of 0 means the function is effectively disabled
aws lambda put-function-concurrency --function-name my-fn \
  --reserved-concurrent-executions 100

# Account limit: request an increase in Service Quotas
# Also check duration: slower invocations hold concurrency longer

How to diagnose Serverless errors

Serverless errors are shaped by hard platform limits: execution duration, deployment package size, memory, and concurrency. Unlike a server you control, these cannot be tuned away. The fix is to restructure the workload. VPC-attached functions add a second class of problem, because they lose default internet access and depend on ENI capacity and NAT configuration.

If the quick fix above does not resolve it, work through these steps. They apply to this whole class of error, not just to this one message, which is usually what saves the time.

  1. Check the platform limit before changing code: timeout, package size and memory are all documented, and the error is usually the limit being reported literally.
  2. For timeouts, add timing logs around each external call. A function that times out is nearly always waiting on one downstream dependency.
  3. Reduce package size with layers, tree-shaking, and by excluding dev dependencies and the provider SDK that the runtime already includes.
  4. For VPC functions with no internet access, confirm there is a NAT Gateway or the relevant VPC endpoints. A function in a private subnet cannot reach the public internet by default.
  5. Measure cold start separately from warm invocation in your metrics, and use provisioned concurrency only after confirming cold starts are the actual problem.

Tools worth reaching for

  • CloudWatch Logs Insights
  • aws lambda get-function-configuration
  • X-Ray / distributed tracing
  • sam local invoke

Authoritative references

Primary documentation for this error, worth reading before applying any fix in production.

docs.aws.amazon.com docs.aws.amazon.com

Related Serverless errors

See all 20 Serverless errors →

Browse other categories

Something missing or wrong?

This entry is maintained by hand. If the fix is out of date, incomplete, or you have a better one, email a correction and it will be reviewed.