serverless-domain-manager
serverless-domain-manager copied to clipboard
Throws "Too Many Requests" on deploy
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Bug Report
Error Description
Plugin throws "Too Many Requests" on deploy.
Command Run
serverless deploy
Console Output
Warning: V1 - 'api.example.cloud' does not exist.
× Stack example failed to deploy (44s)
Environment: linux, node 18.19.1, framework 3.38.0 (local), plugin 7.2.0, SDK 4.5.1
Credentials: Local, environment variables
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues
Error:
Error: Unable to create domain 'api.example.cloud':
V1 - Failed to create custom domain 'api.example.cloud':
Too Many Requests
at ServerlessCustomDomain.<anonymous> (/home/vsts/work/1/s/node_modules/serverless-domain-manager/dist/src/index.js:253:23)
at Generator.throw (<anonymous>)
at rejected (/home/vsts/work/1/s/node_modules/serverless-domain-manager/dist/src/index.js:6:65)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Domain Manager Configuration
Replace this with your own serverless.yml
file (anonymized, of course) to help us better resolve your issue.
custom:
customDomain:
http:
enabled: true
domainName: redacted
stage: dev
certificateArn: redacted
createRoute53Record: true
endpointType: regional
securityPolicy: tls_1_2
basePath: "http"
autoDomain: true
rest:
enabled: true
domainName: redacted
stage: dev
certificateArn: redacted
createRoute53Record: true
endpointType: regional
securityPolicy: tls_1_2
basePath: "rest"
autoDomain: true
Versions
- Domain Manager version(s): 7.3.7
- Node/npm version: 18.19.1
- Serverless Version: 3.38.0
- Lambda Code: Typescript
Possible Solution
Respect the qoutas given at https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html#api-gateway-control-service-limits-table