【问题标题】:Error while doing aws iam list-users using AWS_CLI使用 AWS_CLI 执行 aws iam list-users 时出错
【发布时间】:2021-06-05 17:33:18
【问题描述】:

我尝试在 AWS CLI 中运行 aws iam list-users,但出现错误。错误是:

An error occurred (SignatureDoesNotMatch) when calling the ListUsers operation: Signature not yet current: 20210606T055848Z is still later than 20210605T174350Z (20210605T172850Z + 15 min.)

如果有人知道这个解决方案,请告诉我。

【问题讨论】:

    标签: amazon-web-services amazon-iam aws-cli


    【解决方案1】:

    错误很明显,请求是为20210606T055848Z 签名的,但它“当前”是20210605T172850Z。不同的格式:05:58:48 @ 06.06.2021(签名)与17:28:05 @ 05.06.2021(当前)。两个时间戳之间相差 12 个半小时。

    这意味着您的计算机的当地时间/创建请求的进程不正确,或者请求是故意安排在未来的,并且根本不打算提交。解决方案:修复你的时钟,将代码更改为将来不签名或稍后提交请求。

    【讨论】:

      猜你喜欢
      • 2021-12-26
      • 1970-01-01
      • 2018-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-05
      • 2019-06-20
      相关资源
      最近更新 更多