I have a specific case which I'm not sure if it's possible with AWS CodePipeline. I'm not able to find any information about such scenario in the documentation and google.
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.
- On 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.
Is it possible to use two source actions in a pipeline as described above? If yes, how to achieve this?