'AWS CodePipeline not available for specific Build source

I'm trying to add a 2nd build, based on an existing pipeline. But apparently a few things I don't fully understand.

In the new pipeline, I'm building 2 containers using 2 different repos. In the existing build (FlaskServerBuild) I have for a source:

enter image description here enter image description here

In the existing pipeline that uses that build (FlaskServerPipeline), I see that under the BUILD action I have selected:

enter image description here

Which is why (I think) am allowed to choose under the Source for that build as AWS CodePipeline. E.g. there's a pipeline that specifies that build.

So I'm trying to create another build project. However for some reason I can't specify the same source, the choices I have are:

enter image description here

Under my Pipeline's BUILD actions, I HAVE specified the build:

enter image description here

But still, for some reason I cannot select the AWS CodePipeline as the source. What am I missing for that option to appear? Some connection missing?



Solution 1:[1]

Multiple repo sources can be configured in a CodePipeline Pipeline as separate Source Actions in the Source stage.

The console create-pipeline workflow only allows a single Source Action. But you can add a second repo as a pipeline source after the pipeline is created.

Edit the pipeline to add a second source action: (Sidebar) [Pipelines > Pipeline] > (Select Pipeline) > ['Edit' Button] > ('Edit: Source' section) ['Edit stage' Button] > ['Add action' Button]. Then select a Source Action from the Action Provider dropdown.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 fedonev