-
Notifications
You must be signed in to change notification settings - Fork 4.5k
IAM: addCondition overwrites previous conditions #20158
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-iamRelated to AWS Identity and Access ManagementRelated to AWS Identity and Access ManagementbugThis issue is a bug.This issue is a bug.cause/not-a-bugNot a bug (might still be a documentation issue, might still need work)Not a bug (might still be a documentation issue, might still need work)effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp2
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-iamRelated to AWS Identity and Access ManagementRelated to AWS Identity and Access ManagementbugThis issue is a bug.This issue is a bug.cause/not-a-bugNot a bug (might still be a documentation issue, might still need work)Not a bug (might still be a documentation issue, might still need work)effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp2
Describe the bug
Looking at #19114 the code willThe following code will forget conditions when the only difference is in the value tested, example:will forget the first condition, generating:
instead of
Expected Behavior
Not forget conditions
Current Behavior
Forget conditions
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
1.124
Framework Version
No response
Node.js Version
17.4
OS
macos
Language
Typescript
Language Version
No response
Other information
No response