After running
pip install --upgrade awsebcli
I get the following error when trying to do
eb deploy
Could not push code to the CodeCommit repository: ERROR: CommandError - An error occurred while handling git command. Error code: 128 Error: fatal: 'codecommit-origin dev' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
I can't figure out why that happened. It seems like the connection to the automatically generated repository codecommit-origin is not working anymore.
In the meantime, I am forced to do the following in order to update the code on Elastic Beanstalk:
eb codesource local
But that's not a long-term solution as it deactivates the automatic CodeCommit (git push).
Do you have any idea how to solve that issue?