Use the below shell script to migrate all code-commit repositories to github.
Refer this link, steps are mentioned in the script and it is interactive as well.