API Gateway: Too Many Requests on API creation
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
Hello,
When creating an API that contains a lot of endpoints, we reach the API Gateway limit on resource creation and get the error
```
Too Many Requests (Service: ApiGateway, Status Code: 429, ...
```
The limits :
https://docs.amazonaws.cn/en_us/batch/latest/userguide/service_limits.html
### Reproduction Steps
Create a REST API with a lot of resources.
### What did you expect to happen?
I expected that CDK will consider this and have a 'sleep' between calls if necessary.
Right now I'm just commenting some of the nested stack that contains my ressources and unccoment them in batch.
Linked to this I think :
https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/589
### What actually happened?
Got the 429 error
### Environment
- **CDK CLI Version :** 1.109.0 (build c647e38)
- **Node.js Version:** v12.18.1
This is :bug: Bug Report
Contributor guide
Research direction
Start with the REST API reproduction described in the issue and review the linked CloudFormation coverage-roadmap issue 589 for related context. The payload names no source file or test entry point; done should mean creating an API with many resources no longer fails with the reported API Gateway 429 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100