Custom::LogRetention - ThrottlingException when creating multiple resources #24879
Labels
@aws-cdk/aws-logs
Related to Amazon CloudWatch Logs
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
CDK,
Creating this on behalf of an enterprise customer that experienced significant pains & delays due to this issue.
The
Custom::LogRetention
resource backed by a Lambda function managed by CDK with the source code here, gets throttled by CloudWatch Logs when multiple resources are being created.Recommend implementing backoff and retry mechanism on this custom resource to prevent failure due to throttling.
Expected Behavior
The
Custom::LogRetention
resource should backoff and retry when it encounters aThrottlingException
.Current Behavior
Currently, the
Custom::LogRetention
resource fails when it encounters aThrottlingException
, and this causes the entire CloudFormation stack to fail and rollback.Reproduction Steps
Deploy any CloudFormation stack with multiple
log-retention-provider
that in turn createCustom::LogRetention
resources.Possible Solution
Implement backoff and retry until successful.
Additional Information/Context
No response
CDK CLI Version
2.67.0
Framework Version
No response
Node.js Version
14.x
OS
Lambda
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: