-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-s3-deployment: BucketDeployment fails with rate exceeded (Lambda ThrottlingException) #26940
Comments
Thanks for reporting @borgoat, if you try and downgrade again does the error stop? Also, what is the |
Hey @peterwoodworth! Yes, the deployment pre-upgrade keeps working. To be honest, it has nothing to deploy when it comes to that specific Lambda Layer, since this upgrade got rolled back by CloudFormation. However, the rest of the stack is deploying correctly, including other changes to Lambda Functions. Before the upgrade I was using v2.87. I also tested now upgrading to v2.94 instead, but the issue is the same. The I commented out the BucketDeployment, deployed, and then uncommented and deployed again. This worked: no rate limits were hit. This is the CDK diff before and after the upgrade: diff.txt I find it interesting that it is always the I'm not sure of all the implications and tradeoffs, but anyway I would suggest investigating whether this AWS CLI Layer1 - that is deployed as part of this What do you think? Footnotes |
Had similar issue - thanks to this thread I figured that downgrading CDK version mitigates the issue. Thanks! |
Any development on this front? We started facing this very same issue a couple of weeks ago, and downgrading We currently have 5 stacks that we're deploying in a single CodeBuild pipeline - it might very well be that we're doing "too much" in one go, but still this used to work mostly without any hiccups. |
Describe the bug
I just upgraded to 2.93 and started getting an error during a
BucketDeployment
preparation. It looks like it happens even before the Lambda that copies data from the asset bucket into my target bucket runs.It seems to be an issue while configuring the Lambda Layer, and the error apparently comes from the Lambda Control Plane. AFAIK, it is not possible to raise those limits.
Expected Behavior
I need to deploy a bunch of Lambda Functions together. Probably, I'm updating a lot of them since I did a general upgrade of dependencies, and so they're all deployed at the same time. I'm not even sure if this is a CDK issue to be honest...
Current Behavior
Reproduction Steps
The folder
static-data/bundle
is around ~150MB of data.In the end I fear the real problem is not this Construct per se, but the fact that I'm deploying some other 70 Lambda Functions in parallel?
Possible Solution
I'm wondering if pre-publishing this layer that contains just the CLI could solve this, instead of deploying it every time as a ZIP.
Additional Information/Context
No response
CDK CLI Version
2.93.0 (build 724bd01)
Framework Version
No response
Node.js Version
v18.16.0
OS
macOS
Language
Typescript
Language Version
TypeScript 5.1.6
Other information
No response
The text was updated successfully, but these errors were encountered: