1. Download the git repo into local.
2. Copy the SSH / HTTPS URL from CodeCommit Repo
Then run:
git remote set-url origin ssh://code-commit.address.xxxx
3. Push the code
Now the code will be uploaded to CodeCommit