AWS S3 Bucket Permissions - Access Denied

后端 未结 9 548
独厮守ぢ
独厮守ぢ 2020-12-30 19:12

I am trying to give myself permission to download existing files in an S3 bucket. I\'ve modified the Bucket Policy, as follows:

        {
        \"Sid\": \"         


        
9条回答
  •  时光取名叫无心
    2020-12-30 19:52

    Possible reason: if files have been put/copy by another AWS Account user then you can not access the file since still file owner is not you. The AWS account user who has been placed files in your directory has to grant access during a put or copy operation.

    For a put operation, the object owner can run this command:

    aws s3api put-object --bucket destination_awsexamplebucket --key dir-1/my_images.tar.bz2 --body my_images.tar.bz2 --acl bucket-owner-full-control
    

    For a copy operation of a single object, the object owner can run one of these commands:

    aws s3api copy-object --bucket destination_awsexammplebucket --key source_awsexamplebucket/myobject --acl bucket-owner-full-control
    

    ref : AWS Link

提交回复
热议问题