CfnInsightRule and TagManager: Duplicate tag key/value pair leads to INVALID_TAG issue #30056
Labels
@aws-cdk/aws-cloudtrail
Related to AWS CloudTrail
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/medium
Medium work item – several days of effort
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Following the thread of #20103 but with more evidence.
Digging into CloudTrail, the INVALID_TAG from CfnInsightRules are caused by duplicate key/value pairs.
One of the Tags KeyValue pair is duplicated in the
PutInsightRule
CloudTrail event.The CDK changeset shows the key/value pair isn't duplicated
Expected Behavior
CfnInsightRule
generatedPutInsightRule
should not duplicate tags.Current Behavior
CfnInsightRule
generatedPutInsightRule
should one duplicate tags.Reproduction Steps
create multiple tags on the stack level.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.132.0
Framework Version
No response
Node.js Version
18.19.1
OS
Linux
Language
TypeScript
Language Version
4.9.5
Other information
I don't think the bug is related to CDk. the cloudformation output is correct.
However, the
PutInsightRule
action taken by the cdk has an extra duplicated tag, leading to the issue.The text was updated successfully, but these errors were encountered: