AWS损坏了EC2的authfailure

发布于 2025-01-23 00:17:34 字数 1023 浏览 2 评论 0原文

自昨天以来,我的AWS突然在任何地方都丢了错误。 (在Windows Terminal,WSL2 Ubuntu上)几天前,Terraform正常工作。因此,我知道AWS凭据是准确的,但是可以肯定的是,我做到了

aws configure --profile mohit
Access Key ID [None]: aws_access_key_id
Secret Access Key [None]: default_secret_key
Default region name [None]: us-east-1
Default output format [None]: json

并执行了

aws ec2 --profile mohit describe-instances --region ap-south-1

IAM用户具有管理员访问权限,因此排除了权限问题。 另外,我尝试了许多不同的地区,没有任何效果。

An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials

此错误是一致的。

AWS说时间可能与亚马逊不同步。 我尝试了解决方案, ntpdate [172]:使用NTP套接字,退出此错误弹出。 此外

sudo service ntp stop
>> ntp: unrecognized service 

致命错误:AdjTimeX(0x8001)失败:在WSL2 Ubuntu上尝试执行chronyd时未实现函数

我该如何解决?

更新 : 我检查了我的BIOS,时钟也在5分钟前关闭(我很想知道原因),所以我将其设置为Time.gov UTC。 问题解决了,但理性仍然未知!

My aws is suddenly throwing error everywhere since yesterday.
(on windows terminal, WSL2 ubuntu) Couple days ago terraform worked fine. So I know aws credentials are accurate but to be sure I did

aws configure --profile mohit
Access Key ID [None]: aws_access_key_id
Secret Access Key [None]: default_secret_key
Default region name [None]: us-east-1
Default output format [None]: json

and executed

aws ec2 --profile mohit describe-instances --region ap-south-1

IAM user has Administrator access.So that rules out permission issues.
Also I tried Bunch of different regions, none worked.

An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials

This error is consistent.

AWS says time might be out of sync with amazon.
I tried the solution and
ntpdate[172]: the NTP socket is in use, exiting this error popped.
Also

sudo service ntp stop
>> ntp: unrecognized service 

and

Fatal error : adjtimex(0x8001) failed : Function not implemented on trying to do chronyd on WSL2 ubuntu.

How do I fix this?

UPDATE :
I checked my BIOS and clock was off by 5 min there as well (I would love to know the reason) So I manually set it to time.gov UTC.
Problem Solved, but Reason is still unknown!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文