On the road again

If you need to access AWS codecommit repo using federated login (SSO) certain steps need to be performed.

 Prerequisites:

- Python (2 or 3);

- Git;

- AWS CLI.

Configure Git:

git config --global credential.helper "!aws codecommit credential-helper --profile master $@"
git config --global credential.UseHttpPath true

Install git-remote-codecommit:

pip install git-remote-codecommit

 Get a repo link from AWS Console. Take the one named "HTTPS (GRC)":

git clone codecommit::us-east-1://amd-ssm-remediation

IMPORTANT: the command above will use "default" profile. If you need to use another profile consider using following syntax:

git clone codecommit::us-east-1://PROFILE_NAME@amd-ssm-remediation