aws / copilot-cli

The AWS Copilot CLI is a tool for developers to build, release and operate production ready containerized applications on AWS App Runner or Amazon ECS on AWS Fargate.
https://aws.github.io/copilot-cli/
Apache License 2.0
3.5k stars 408 forks source link

Copilot support for private git repositories #1607

Open sundarnarasiman opened 3 years ago

sundarnarasiman commented 3 years ago

We can run 'copilot pipeline' commands to set up AWS CodePipeline for ECS microservices using Copilot. Currently it supports only a public git repository by supplying the git secret keys. It needs to support a private git repository which is setup for SSH access. This is a common use, where many teams want to use git private repositories.

pmapkiranch commented 3 years ago

Any update on this request please?

Lou1415926 commented 3 years ago

Hi @pmapkiranch ! Thank you very much for following up with us!

Apologies 🙇🏼‍♀️ ! At this moment, this feature isn't in our short term roadmap yet. Here is our sprint board that shows the ongoing features that we are currently working on.

Since private git repositories isn't natively supported by CodePipeline at the moment, we still need to investigate how to achieve this sort of work.

This is possibly related - the article describes how to use a third-party git repositories with CodePipeline, and hopefully it may be helpful to you!

pmapkiranch commented 3 years ago

Thanks for the update, but code build does support GitHub enterprise and when I put enterprise GitHub url for copilot pipeline it's not working

Lou1415926 commented 3 years ago

@pmapkiranch GitHub enterprise integration is in fact supported by Copilot 😄 . You can create a CodeStar connection to your GitHub Enterprise repository, and then use the generated ConnectionArn for the connection_name field in your pipeline.yml.

bharanicodes commented 1 year ago

Hi, sorry to log into this old thread, just to get confirmation if I can create a private repo for my org and make Copilot only crawl code in my org repo and prevent looking up in public repo?

dannyrandall commented 1 year ago

Hey @bharanicodes! Sorry for the late response - wanted to clarify that if your private repo is in Github, you can use private repos in a Github org or a Github Enterprise Cloud/Server. Additionally, repos in AWS CodeCommit and Bitbucket Cloud are supported.

However, private git repositories outside of the above providers is not currently supported.