小编Kar*_*ati的帖子

向规范 ID 授予权限时 API `aws s3` 和 `aws s3api` 之间的区别

为了将文件上传到 s3 存储桶,我们使用以下 CLI 命令(此命令工作正常):

aws s3api put-object --grant-full-control id=e2cxxxxxxxxx --bucket my_bucket --key folder/filename --body filename
Run Code Online (Sandbox Code Playgroud)

aws s3api不支持文件上传> 5GB,我们将不得不开始会很快支持。我尝试使用aws s3(高级 API)进行上传。该命令现在看起来像:

aws s3 cp filename s3://my_bucket/folder/filename --grants full=id=e2cxxxxxxxxx
Run Code Online (Sandbox Code Playgroud)

但是,此命令会引发 An error occurred (AccessDenied) when calling the UploadPart operation: Access Denied

我试图了解两者有何不同,以及为什么一个投掷AccessDenied而另一个不投掷。

amazon-s3 amazon-web-services

2
推荐指数
1
解决办法
2040
查看次数

标签 统计

amazon-s3 ×1

amazon-web-services ×1