AWS损坏了EC2的authfailure
自昨天以来,我的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 andntpdate[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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论