I can't login CLI in my terminal

I have created Access key and Secret access key , Using aws configure command, I have configured it, but I can’t access my aws in AWS CLI and aslo I have already install AWS CLI.

I got a error like this An error occurred (InvalidToken) when calling the ListBuckets operation: The provided token is malformed or otherwise invalid.

Could you please resolve it.

You need to use the correct credentials. Copy and paste them exactly as they are ensuring you don’t press and extra keys:

$ aws configure
AWS Access Key ID [****************FX7H]: AKIA5*************
AWS Secret Access Key [****************DvWl]: 5BR+********************************
Default region name [us-east-1]:
Default output format [None]:
$ aws s3 ls
$ aws s3api create-bucket --bucket bucket383948394389 --region us-east-1
{
    "Location": "/bucket383948394389"
}
$ aws s3 ls
2024-01-18 09:50:19 bucket383948394389
$

@aI1 thanks for your reply, here I have provide right credentials, I know very well, although I have got this error, what can I do ?

The error is the token is invalid. So either the credentials are wrong or they have expired.

Another thing it could be is that the local time is incorrect.