I added new user and configured credentials
aws configure import --csv file://new_user_credentials.csv
I edited manually config and credentials files by removing previous accounts
aws configure list-profiles
shows
default
mapichanach
Well,it does not work
echo $AWS_ACCESS_KEY_ID
AKIAYMYFMTQMoriginal
cat .aws/credentials
[default]
aws_access_key_id = AKIAYMYFMTQMdifferent
aws_secret_access_key = *********************
[markovich]
aws_access_key_id = AKIAYMYFMTQMdifferent
aws_secret_access_key = *********************
when I tried
aws s3 ls --region us-east-1
An error occurred (InvalidAccessKeyId) when calling the ListBuckets operation: The AWS Access Key Id you provided does not exist in our records.
I changed .bash_aws hidden file. Now both $AWS_ACCESS_KEY_ID and $AWS_SECRET_ACCESS_KEY show the same value as in credential file.
So I am confused right now. Why the change is not detected?