Search code examples
amazon-web-servicesdevopsaws-codepipelineaws-codestar

Can we share AWS CodeStar connection with multiple CodePipelines?


What is the best practice regarding the number of CodeStar connections? Is it okay to reuse one CodeStar connection with all CodePipelines? Is there any benefit of creating new connection resources with different pipelines?


Solution

  • Yes, it is possible.

    Let's say you have a Github organization with 50 application repositories. You'll want a CodePipeline for each of these repos, but you can have only one CodeStar connection that's allowed to read all of the 50 repositories in the organization.

    In the project I'm currently working on, we have approximately 150 CodePipelines that get the code from repos across 4 organizations. For each of theses orgs, we have a CodeStar Connection.

    This tutorial is a good starting point.