Getting Access Denied when calling the PutObject operation with bucket-level permission

前端 未结 14 1335
醉话见心
醉话见心 2020-12-12 13:37

I followed the example on http://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_examples.html#iam-policy-example-s3 for how to grant a user access to just one buck

14条回答
  •  借酒劲吻你
    2020-12-12 13:44

    Similar to one post above, (except I was using admin credentials) to get S3 uploads to work with large 50M file.

    Initially my error was:

    An error occurred (AccessDenied) when calling the CreateMultipartUpload operation: Access Denied
    

    I switched the multipart_threshold to be above the 50M

    aws configure set default.s3.multipart_threshold 64MB
    

    and I got:

    An error occurred (AccessDenied) when calling the PutObject operation: Access Denied
    

    I checked bucket public access settings and all was allowed. So I found that public access can be blocked on account level for all S3 buckets:

提交回复
热议问题