Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu 调用ListAccountAlias操作时发生客户端错误(InvalidClientTokenId):请求中包含的安全令牌无效_Ubuntu_Amazon Web Services_Amazon S3_Aws Cli - Fatal编程技术网

Ubuntu 调用ListAccountAlias操作时发生客户端错误(InvalidClientTokenId):请求中包含的安全令牌无效

Ubuntu 调用ListAccountAlias操作时发生客户端错误(InvalidClientTokenId):请求中包含的安全令牌无效,ubuntu,amazon-web-services,amazon-s3,aws-cli,Ubuntu,Amazon Web Services,Amazon S3,Aws Cli,每个人 我试图使用AWS S3和AWS cli,但我的所有命令行输入都会出现以下错误 A client error (InvalidClientTokenId) occurred when calling the ListAccountAliases operation: The security token included in the request is invalid. 我正在使用Ubuntu14.04.1,并通过sudopip安装awscli安装awscli 我在IAM控制台上创建

每个人

我试图使用AWS S3和AWS cli,但我的所有命令行输入都会出现以下错误

A client error (InvalidClientTokenId) occurred when calling the ListAccountAliases operation: The security token included in the request is invalid.
  • 我正在使用Ubuntu14.04.1,并通过
    sudopip安装awscli安装
    awscli

  • 我在IAM控制台上创建了一个用户,并为该用户设置了相关策略

  • 我通过运行
    aws configure

  • 我在S3控制台上创建了一个bucket,并设置了一个策略,允许上面的用户访问这个bucket

  • 但是,命令行(终端)上的所有命令(我知道)都给了我上述错误,我找不到任何有关这方面的信息

    我试过了

    aws s3 ls

    aws s3 ls s3://

    aws iam列出帐户别名

    有人能帮我解决这个问题吗

    致以最良好的祝愿


    Jaehyun

    您确定您的凭证复制正确吗?您的帐户需要MFA吗?也可能是这样。@JordonPhillips嗨,谢谢你的评论。这是凭证问题。在看到你的评论后,我创建了一个新用户,它可以正常工作。我想我没有正确地复制我的证书。非常感谢你!