AWS lambda列表 - 功能命令返回(InvalidSignature Exception)错误



我是第一次AWS用户,我正在使用Lambda。在http://docs.aws.amazon.com/lambda/lambda/latest/dg/getting-started.html上,我在步骤1的最终命令上,以后: aws lambda list-functions --profile admin(我的用户名是管理员,而不是adminususer)。

这是我的admin配置文件:

[profile admin]
output = json
region = us-west-2

这是我一直遇到的错误:

An error occurred (InvalidSignatureException) when calling the ListFunctions operation: Signature not yet current: 20170305T010814Z is still later than 20170304T231204Z (20170304T230704Z + 5 min.)

我没有任何EC2实例或任何运行的东西,因为该指南尚未提及该方面的任何内容,但是我觉得我在这里错过了一些基本的东西。

问题在错误消息中:

在调用ListFounctions操作时发生错误(InvalidSignature Exception):签名尚未当前:20170305T010814Z迟到的时间迟到了20170304T231204Z(201700304T230704Z 5 min。)

当AWS SDK签名API调用时,当前时间(如本地计算机上)是该签名的一部分。我认为,API要求您的时钟在AWS时钟的一定程度之内,我认为/- 5分钟。您要遇到的错误是因为时钟有所不同。

检查您正在执行命令的计算机上的时钟;您正在看到InvalidSignatureException错误的计算机。

消息说您的本地时钟是20170305T010814Z,它是2017-03-05 01:08:14 UTC。它还说AWS的时钟是20170304T230704Z,即2017-03-04 23:07:04 UTC。

因此,看起来您的本地时钟比AWS的时钟提前两个小时。

相关内容

  • 没有找到相关文章

最新更新