Closed heyitsmepatg closed 3 years ago
Looks like the issue had to do with having a $AWS_PROFILE environment variable set. It was set to default
. Removing the environment variable eliminated the git-remote-codecommit
script error (underlying error being in botocore being unable to find the credentials for an AWS profile)
I am on Windows 10 environment with the following configuration:
python version: Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32 aws cli version: aws-cli/2.1.29 Python/3.8.8 Windows/10 exe/AMD64 prompt/off
Output from
pip install git-remote-code-commit
:When I attempt to clone or fetch or otherwise access the remote for my repo, I get the following error:
The following profile does not have credentials configured: default. You must configure the access key and secret key for the profile. For more information, see Configure an AWS CLI Profile in the AWS CLI User Guide.
I gain access to my
aws_access_key
andaws_secret_key
viaaws-azure-login
.However, I have run
aws configure
many times, and have a profile configured with an access key, secret key, and session token for an assumed role (it has admin permissions to the environment, and I can read and write to my repo from the Management Console)My
.aws/config
looks like this:My
.aws/credentials
look like this:Another thing to note is that the Powershell environment is based on a different user (elevated user) than the main Windows account user.
Don't know why I am getting this issue...any advice?