'GitLab as mirror for CodeCommit
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?
Solution 1:[1]
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.
Solution 2:[2]
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.
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 | Efren |
Solution 2 | agilob |