If you follow the AWS CodeCommit documentation it instructs to run the commands:
git config --global credential.helper '!aws codecommit credential-helper $@' git config --global credential.UseHttpPath true
However when running in Sourcetree this throws an error:
aws codecommit credential-helper $@ get: aws: command not found
If you change the command to point to the full path of aws-cli then the command work correctly:
git config --global credential.helper '/usr/local/bin/aws codecommit credential-helper $@'
Therefore it seems Sourcetree is not pulling in the path for aws-cli like other terminal windows?
Really this feature should be supported out-of-the-box, and we shouldn't have to put full paths in our scripts.