为什么通过aws-cli调用ListObjects操作时发生客户端错误(InvalidRequest)?

时间:2018-01-26 21:05:23

标签: amazon-web-services amazon-s3 backup

现在我试图通过aws cli备份我的数据库,但它会抛出错误

root@f22e9806cb38:~# aws s3 sync $BACKUP_PATH $S3_URL
A client error (InvalidRequest) occurred when calling the ListObjects operation: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.
root@f22e9806cb38:~# aws --version
aws-cli/1.4.2 Python/3.4.2 Linux/4.13.0-31-generic

我使用aws configure命令和粘贴的访问权限和私钥配置了aws cli。如何解决错误?

0 个答案:

没有答案