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, 2020 in AWS by akhtar
• 38,230 points
927 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.

Check out this AWS certification training to become the expert!

answered Apr 27, 2020 by MD
• 95,440 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,170 points
10,419 views
+2 votes
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
• 58,090 points
10,286 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
• 58,090 points
5,284 views
–1 vote
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
• 58,090 points
4,763 views
0 votes
2 answers
0 votes
1 answer
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, 2020 in AWS by MD
• 95,440 points
1,796 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP