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

前端 未结 14 1370
醉话见心
醉话见心 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:58

    If you have set public access for bucket and if it is still not working, edit bucker policy and paste following:

        {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Action": [
                    "s3:PutObject",
                    "s3:PutObjectAcl",
                    "s3:GetObject",
                    "s3:GetObjectAcl",
                    "s3:DeleteObject"
                ],
                "Resource": [
                    "arn:aws:s3:::yourbucketnamehere",
                    "arn:aws:s3:::yourbucketnamehere/*"
                ],
                "Effect": "Allow",
                "Principal": "*"
            }
        ]
    }
    

提交回复
热议问题