-
Notifications
You must be signed in to change notification settings - Fork 4.5k
aws-events-targets: retryAttempts = 0 does not work as intended #21864
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-events-targetsbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdp2
Description
Describe the bug
Hi team,
I am working on EventBridge via CDK and got an issue with retryAttempts property.
After creating a rule, I tried to set a target with retryAttempts = 0 but CDK has set retryAttempts as default value instead of 0.
Expected Behavior
myRule.addTarget(
new targets.LambdaFunction(myLambda, {
retryAttempts: 0,
...
This code should set retryAttempts value as 0.
Current Behavior
Instead of setting 0, the code set retryAttempts as default value which is 185.
Reproduction Steps
- Create a rule.
- Set a target with retryAttempts = 0.
- Deploy a stack.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.39.1
Framework Version
No response
Node.js Version
16.13.1
OS
MS Windows 10
Language
Typescript
Language Version
TypeScript (3.9.10)
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-events-targetsbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdp2