3. I n t r o d u c t i o n
I want to use my Git client with AWS CodeCommit
Git is a free and open source distributed version control system designed to
handle everything from small to very large projects with speed and efficiency.
http://git-scm.com/
AWS CodeCommit is a fully-managed source control service that makes it easy
for companies to host secure and highly scalable private Git repositories.
CodeCommit eliminates the need to operate your own source control system or
worry about scaling its infrastructure.
https://aws.amazon.com/codecommit/
4. I n t r o d u c t i o n
I have read the following manual:
http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-windows.html
I installed and configured Git and CodeCommit on my workstation
After configuration Git and CodeCommit work properly
This step caused trouble later.
5. I t ’ s n o t a b u g i t ’ s a f e a t u r e
Some time later I ran the command:
>aws codecommit list-repositories
I got an error:
>You must specify a region. You can also configure your region by running "aws configure".
What could have happened in the meantime?
6. T e m p o r a r y S o l u t i o n
The HOME environment variable is the problem.
It seems that AWS CLI uses %HOME% environment variable
to find configuration files.
I ran the following command for clean %HOME%:
>Set HOME=
Then I ran the command:
>aws codecommit list-repositories
Success - I received a list of repositories
7. P e r m a n e n t S o l u t i o n
When you will follow this manual:
http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-windows.html
HOME environment should point to %USERPROFILE%
>setx HOME %USERPROFILE%
Be careful during this step