为什么在使用AWS S3 get时出现methodnotallowed错误?

时间:2018-10-30 19:48:47

标签: amazon-web-services amazon-s3 aws-cli

当我尝试在其上执行get对象时,我可以使用'aws cp'从S 3存储桶中复制文件,出现MethodNotAllowed错误

[root@ip-10-205-142-73 rshan]# aws s3api --region  "us-east-1"  get-object --bucket mys3bucket-us-east-1-pp --key file1.encrypted --version-id oRhjdDYkojS5X_rj1jj /home/file1.encrypted
An error occurred (MethodNotAllowed) when calling the GetObject operation: The specified method is not allowed against this resource.

0 个答案:

没有答案