Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS API Gateway: API Key Limit

The AWS API Gateway by default limits the maximum number of API keys per account per region to 500, however documentation notes this can be increased by request.

Is there a hard cap on the max upper limit? Are there soft limits for which requests are unlikely to be approved? Can I get to 10K keys on the max upper end?

I'm following the AWS developer portal setup walk-through using API keys for authorization and want to ensure the project reasonably scales beyond 500.

AWS API Gateway Limits

like image 471
tjrburgess Avatar asked Aug 30 '18 23:08

tjrburgess


People also ask

What is the range of API key in API gateway?

The value is an alphanumeric string between 30 and 128 characters, for example, apikey1234abcdefghij0123456789 . API key values must be unique. If you try to create two API keys with different names and the same value, API Gateway considers them to be the same API key.

How many API calls can API gateway handle?

Choosing A New Tech Stack Infinite scale and high throughput - the account limit on API Gateway is 10,000 requests per second or about 864M calls daily.

How many characters does an API key have?

A Key value must be between 30 and 128 characters.


1 Answers

You can easily ask for an increase. But APIG has hard limit for the number of API keys. This limit is currently 10k per region and you cannot go beyond that.

If you need to go beyond that number, I would question if you really tend to create such a service, having 10k different users, with a potential blast radius. You might consider to split up your service into multiple APIGs to minimize the risk.

The other alternative would be create own API key mechanism. You can use Lambda authorizer [1] and store API keys let's say in the DDB.

[1] https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html

like image 76
Milan Matějka Avatar answered Sep 17 '22 21:09

Milan Matějka