"Since there is no proper way to configure push filter using cdk for aws codepipeline, I've tried the below. But it gives me an error which is posted below. Tried multiple things but non of them worked. Anybody has a clue on this?
Code:
const cfnPipeline = pipeline.node.defaultChild as codepipeline.CfnPipeline;
cfnPipeline.addPropertyOverride("Triggers.0.GitConfiguration.Push.0.Branches", {
Includes: ["main", "dev"],
});
Error:
Properties validation failed for resource PipelineABCD5664GGD with message: [#/Triggers/0/GitConfiguration/Push: expected type: JSONArray, found: JSONObject]
"is missing afterdevcfnPipeline.addPropertyOverride('Triggers.0.GitConfiguration.Push.0.Branches.Includes', ['main','dev']).