question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Throttling: Rate exceeded

See original GitHub issue

When deploying multiple CDK stacks simultaneously, a throttling error occurs when trying to check the status of the stack. The CloudFormation runs just fine, but CDK returns an error because the rate limit was exceeded.

We’re using typescript.

The issue #1647 says that this error was resolved, but looking at the fix (#2053), it only increased the default number of retries, just making it less likely to happen.

Is there at least a way to override the base retryOptions in a CDK project? If there is, I can just override it in my side so the error does not occurs.

Even if there is, I think that this should be solved in the base project. I don’t think CDK should ever fail because of rate limiting while trying to check the stack status in CloudFormation, as it does not affect the end-result (the deployment of the stack).

Use Case

One of our applications have one CDK stack per customer (27 in total). When there’s an important fix that needs to be sent to every customer, we run the cdk deploy command for each stack, simultaneously, via a Jenkins pipeline.

Error Log

00:03:13   ❌  MyStackName failed: Throttling: Rate exceeded
00:03:13  Rate exceeded

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:50
  • Comments:38 (12 by maintainers)

github_iconTop GitHub Comments

14reactions
tobias-bardinocommented, Feb 13, 2020

We hit this issue regularly and it is getting really annoying 🤨

Last build 2 of 10 stacks failed with the “Throttling: Rate exceeded” error …a retrigger of the CICD pipeline will most likely succeed!

9reactions
phcysocommented, Apr 17, 2020

Just to add another voice to this This is affecting my team as well.

In particular we have several CDK apps which creates over 100 stacks each If more then one of these apps are deploying at once time they fail with the rate exceeded message and just exit failing our CI build with no apparent retries.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot "ThrottlingException" or "Rate exceeded" errors ...
When I use AWS Systems Manager Parameter Store, I receive a "ThrottlingException" error message indicating "Rate exceeded" similar to one of ...
Read more >
AWS API throttling rate exceeded | Resolved - Bobcares
How to solve AWS API throttling rate exceeded error? · Check with API calls are throttled · Check “describe” calls in the Elastic...
Read more >
Getting ThrottlingException: Rate exceeded, status code: 400 ...
When requests come in faster than your function can scale, or when your function is at maximum concurrency, additional requests fail with a ......
Read more >
Getting error : throttling rate exceeded | AWS re:Post
Getting error : throttling rate exceeded ... We are using ses.getIdentityVerificationAttributes to check is email is verified or not in aws for example...
Read more >
Serverless Error: Rate exceeded - Seed.run
Error Message. Serverless Error: Rate exceeded · Problem. This error happens when multiple Serverless services are being removed concurrently. · Solution. If your ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found