DebugFactor.com | Forum

How to reconfigure AWS CLI. Error: The config profile name could not be found

I get an error while executing aws command in CLI as below.

The config profile name could not be found

And while executing s3 make bucket command I get the below error

The AWS access key ID you provided does not exists in our records.

This might be mostly because you need to setup the AWS CLI. You need to run the below command.

aws configure --profile "profilename"

It might ask for the access id and secret key. You can get this by navigating to IAM and click on Credential Report and then Download the report to see the access and secret keys. Or Navigate to Users under IAM and create new access keys.

The same fix can be used for the below error as well
Error: The AWS access key ID you provided does not exists in our records.