https://github.com/valentinfunk/migrate-gitlab-codecommit
Migrate GitLab repositories to Amazon AWS CodeCommit easily
https://github.com/valentinfunk/migrate-gitlab-codecommit
Last synced: about 1 month ago
JSON representation
Migrate GitLab repositories to Amazon AWS CodeCommit easily
- Host: GitHub
- URL: https://github.com/valentinfunk/migrate-gitlab-codecommit
- Owner: ValentinFunk
- License: mit
- Created: 2015-12-05T17:09:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-24T06:51:21.000Z (about 9 years ago)
- Last Synced: 2025-03-27T14:09:45.960Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
This script can be used to migrate from GitLab to AWS Code Commit.
It moves all repositories from GitLab to CodeCommit. It assumes you have already configured the system to work with codecommit.## Usage
1.) Set up environment variables:
- Either use ~/.aws/credentials or set up AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY (more about access keys: http://docs.aws.amazon.com/console/iam/access-keys)
- If using windows:Set AWS_KEY_ID to your SSH Key ID (Get from AWS Console -> IAM > Users > (YOur User) > Security Credentials)
- Set GITLAB_URL to your gitlab's URL, GITLAB_TOKEN to your gitlab API token (get from /profile/account)2.) Run the script
Run without arguments to migrate all repositories. List repository names witout namespace for selective migration.node index.js # All repositories
node index.js repo1 repo2 repo3 # Migrate only repo1, repo2, repo3