I have a specific case which I'm not sure if it's possible with AWS CodePipeline, and I didn't find any information about it in the documentation and event by googling....
So I would like to know if I can set two sources in a pipeline (it could be in the same stage or different stages).
Here is my use case :
- I would like my pipeline to start when a file (a specific object) is modified in my s3 bucket
- When this file changes and the pipeline is triggered, I would like to clone a codecommit repository and then process the build and other stages...
- In the other hand when there is a commit on the master branch of my codecommit repository, I would like the pipeline to start and build my sources.
- So The pipeline should be triggered either when the change comes from s3 or codecommit
- I don't want to version the s3 file in my codecommit repository because it should be encrypted and used by others teams than dev team working with the git repository
- And any time my pipeline starts either if it's from the s3 bucket change or the codecommit push, I should source the commit from the repository for build purposes...
I don't know if my objectives specifications are clear, if yes is it possible to use two source actions in a pipeline as described above and how to achieve this?
Thank you in advance.
Cheers, Eugène NG