3

For my use case I need to use CodeCommit repositories. But I would also like to use GitLab GUI and features.

If I install GitLab on my server, is there a way to either connect it to CodeCommit repos directly (I just need to browse commits there) or set it as a mirror for CodeCommit so it would contain copies for all CodeCommit repos?

Tomage
  • 187
  • 1
  • 12

2 Answers2

3

It should be possible to mirror your GitLab repository to an AWS CodeCommit repository. This Gitlab doc explains it. Basically, it helps you setup a CodeCommit repository to use as a replica, then you can set up a recurring job/codepipeline to act upon code changes.

The pre-requisite is to get an IAM user in the AWS account that holds the CodeCommit repo and will use credentials to pull the Gitlab repo into CodeCommit.

Efren
  • 4,003
  • 4
  • 33
  • 75
David Jackson
  • 591
  • 2
  • 5
0

Yes, open new repository, go to settings -> General and you can find mirror function there. It will copy remote repository a few times per day.

agilob
  • 6,082
  • 3
  • 33
  • 49