后端awsmobile项目创建错误

时间:2018-06-15 12:14:51

标签: amazon-web-services aws-mobilehub

我正在尝试使用react native和AWS创建一个项目,但在使用“awsmobile configure”命令输入凭据后,我在下面的“awsmobile init”中收到了此错误。

the security token included in the request is invalid

{ UnrecognizedClientException: The security token included in the request is invalid.at Object.extractError (/usr/local/lib/node_modules/awsmobile-cli/node_modules/aws-sdk/lib/protocol/json.js:48:27) ...

1 个答案:

答案 0 :(得分:2)

如果您还没有,可能需要尝试在有效的awsmobile项目中运行<{1}} 。这将确保您输入的accessKeyId,secretAccessKey和区域应用于您启动的所有项目。