我正在尝试通过命令行将文件上传到 Amazon S3,但我一直收到此错误:
A client error (AccessDenied) occurred when calling the CreateMultipartUpload operation: Anonymous users cannot initiate multipart uploads. Please authenticate.
我正在运行的命令是:
# aws s3 cp --sse pad-20151108-175046.tar.gz s3://mpen-backups
我已经配置了
aws
通过 aws configure
我认为是正确的凭据。 aws s3 ls
确实列出了我的桶。如何向 AWS CLI 提供用户?我的 googlefu 没有找到任何有用的东西。
我安装了
aws
通过 apt-get install awscli
(在 Ubuntu 上)。# aws --version
aws-cli/1.2.9 Python/3.4.0 Linux/3.13.0-24-generic
最佳答案
解决方案:带你的狗出去散步。
大约 30 分钟后我才回来,按下我的终端并重新运行完全相同的命令。这次上传的很好。
我认为我第一次运行时亚马逊遇到了身份验证问题,或者我的 S3 存储桶还没有传播,但它现在运行良好。
关于amazon-web-services - AWS S3 CLI : Anonymous users cannot initiate multipart uploads,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33600192/