CodePipeline onStateChange for Actions generates wrong detail-type #3614
Labels
@aws-cdk/aws-codepipeline
Related to AWS CodePipeline
bug
This issue is a bug.
in-progress
This issue is being actively worked on.
p1
I'm submitting a ...
What is the current behavior?
Create a CodePipeline with stages and actions. Set up
on_state_change
handlers for all three levels, like this (code is in Python, but I believe the situation is the same for all supported languages):This will set up three CloudWatch Event Rules.
The three Event Rules should have different
detail-type
fields:"CodePipeline Pipeline Execution State Change"
"CodePipeline Stage Execution State Change"
"CodePipeline Action Execution State Change"
However, the Action rule gets
"CodePipeline Stage Execution State Change"
and thus never will trigger, given that there also are conditions for the action's action name to match. This means that it's impossible to defineon_state_change
events for pipeline Actions in AWS-CDK 1.3.0.The text was updated successfully, but these errors were encountered: