You can migrate any existing Git repository to a CodeCommit repository. This demo shows you how to migrate a project hosted on Git repository to CodeCommit.
Follow this article in Youtube
- Setup CodeCommit Get help here
Update the below values to match your requirements
migration_dir="./_trash"
git_url="https://github.com/miztiik/lex-faq-bot.git"
aws_region="eu-central-1"
codecommit_repo_name="lex-faq-bot"
# Create CodeCommit Repo
aws codecommit create-repository \
--repository-name ${codecommit_repo_name} \
--repository-description "My shiny new chat bot"
# Clone Git to local (only for migration purposes; not for local development)
git clone --mirror ${git_url} ${migration_dir}
# Push the repo to CodeCommit
cd ${migration_dir}
git push ssh://git-codecommit.${aws_region}.amazonaws.com/v1/repos/${repo_name} --all
git push ssh://git-codecommit.${aws_region}.amazonaws.com/v1/repos/${repo_name} --tags
# CleanUp - Remove local copy
rm -rf ${migration_dir}
Please open a GitHub issue.
Please open a GitHub issue. I do encourage you to contribute your changes and send me pull request.