error: invalid credentials in aws cli.

0 votes

I installed aws cli in my local system and configured credentials in my system. But still I am getting the below error.

$ aws s3 ls
error: invalid credentilas

I cross checked my credentials and there are nothing wrong. 

Apr 27 in AWS by akhtar
• 11,270 points
21 views

1 answer to this question.

0 votes

Hi@akhtar,

You may got this error, if your computer's clock is out of sync. You are using valid credentials, but your clock may be out of sync. On Linux or macOS, run date to check the time.

$ date

If your system clock is not correct within a few minutes, use ntpd to sync it.

$ sudo service ntpd stop
$ sudo ntpdate time.nist.gov
$ sudo service ntpd start
$ ntpstat

Hope this will solve your error.

answered Apr 27 by MD
• 24,500 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

AWS S3 CLI : error while trying to copy files locally using terminal

For the first error you should add ...READ MORE

answered Aug 3, 2018 in AWS by Archana
• 4,150 points
2,780 views
+1 vote
1 answer
0 votes
1 answer

Error in Adding LIMIT fixes “Invalid digit, Value N” in Amazon Redshift.

This could be expressed simply as: SELECT TOP ...READ MORE

answered Sep 4, 2018 in AWS by Priyaj
• 57,530 points
3,930 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 57,530 points
774 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 57,530 points
1,554 views
0 votes
2 answers
0 votes
1 answer

How to update account credentials in aws cli?

Hi@akhtar, You can find one .aws folder in ...READ MORE

answered Apr 27 in AWS by MD
• 24,500 points
38 views