Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure commit message filter in AWS CodePipeline

Well, I would like to avoid some types of commits to trigger an AWS CodePipeline, but I can't find any configuration about this in Source phase:

enter image description here

But, If AWS CodeBuild is not linked with AWS CodePipeline I have access to more features about trigger:

enter image description here

How can I configure trigger options using AWS CodePipeline ?

like image 523
userdevexp Avatar asked Dec 02 '25 10:12

userdevexp


1 Answers

You can do this by editing the CloudWatch Event for the pipeline. Using a Lambda function, you can look for a specific type of change in your commit. The example in the link below looks for changes to specific files - so if you change the readme.md file, for example, don't deploy.

https://aws.amazon.com/blogs/devops/adding-custom-logic-to-aws-codepipeline-with-aws-lambda-and-amazon-cloudwatch-events/

You could take this example further and look for specific flags in your commit message, for example.

like image 125
JBS Avatar answered Dec 04 '25 23:12

JBS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!