I have created a cloudwatch event which triggers a codebuild project when there is a push in the master branch of a codecommit repo. I am trying to build the project when there is a push in the "develop" branch. I can specify the source branch for triggering the build. However, codebuild is always building from the master branch.
I am looking for a way to send the source branch to codebuild when initiated by a cloudwatch event trigger.
This is my cloudwatch event.