amazon-web-servicesgithubterraformaws-codepipeline

Trigger specific AWS Codepipeline source stage when change is made to a specific directory in repo


I have a number of services in a single GitHub repository, each service has its own CodePipeline on AWS managed through Terraform. Instead of triggering all of the pipelines on commit, I'd like to know how I can trigger each service's pipeline if its directory had any changes on commit, without having to split the services each into its own repository.


Solution

  • It ended up being simpler than I had anticipated, there are github actions that do exactly what I needed.

    This action checks whether a path had a change, and this action triggers a specific pipeline.