CodePipeline: synth error with multiple CodeCommit sources using CloudWatch Event triggers #29878
Labels
@aws-cdk/aws-codepipeline
Related to AWS CodePipeline
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
I would like to have a CodeCommit source action for each of two repositories in one pipeline stage. The usecase is one pipeline building and running integration tests between code residing in two different repositories: I want the pipeline to trigger when a commit lands in either repository.
When using the CloudWatch Events trigger type with both source actions, synth fails with the error
There is already a Construct with name '<pipeline-id>EventRule' in Pipeline
. The issue can be worked around by changing one to use a polling trigger, but this is a bug.Quite similar to #7802, which solved a similar issue where multiple source actions referring to the same branch name needed to be disambiguated.
Expected Behavior
cdk synth
should work when multiple source actions in the same pipeline use CloudWatch event triggers.Current Behavior
cdk synth
fails with the errorThere is already a Construct with name '<pipeline-id>EventRule' in Pipeline
.Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.137.0 (build bb90b4c)
Framework Version
No response
Node.js Version
18.18.2
OS
Linux
Language
Go
Language Version
go1.20.12
Other information
No response
The text was updated successfully, but these errors were encountered: