Difference between revisions of "How do I troubleshoot the error "You don't have permissions to edit bucket policy" when I try to modify a bucket policy in Amazon S3?"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
* https://repost.aws/knowledge-center/s3-access-denied-bucket-policy
  
 +
 +
{
 +
  "Version": "2012-10-17",
 +
  "Statement": [
 +
    {
 +
      "[[Sid]]": "ModifyBucketPolicy",
 +
      "Action": [
 +
        "s3:GetBucketPolicy",
 +
        "s3:PutBucketPolicy"
 +
      ],
 +
      "Effect": "Allow",
 +
      "Resource": "arn:aws:s3:::DOC-EXAMPLE-BUCKET"
 +
    },
 +
    {
 +
      "Sid": "AccessS3Console",
 +
      "Action": [
 +
        "s3:GetBucketLocation",
 +
        "s3:ListAllMyBuckets"
 +
      ],
 +
      "Effect": "Allow",
 +
      "Resource": "arn:aws:s3:::*"
 +
    }
 +
  ]
 +
}
  
https://repost.aws/knowledge-center/s3-access-denied-bucket-policy
 
  
  
[[s3:]]
+
== Related ==
[[s3:GetBucketPolicy]]
+
* <code>[[s3:]]</code>
[[s3:PutBucketPolicy]]
+
* <code>[[s3:GetBucketPolicy]]</code>
 
+
* <code>[[s3:PutBucketPolicy]]</code>
 
+
* <code>[[Error: Error putting S3 policy: AccessDenied: Access Denied]]</code>
[[Error: Error putting S3 policy: AccessDenied: Access Denied]]
 
 
 
  
 
== See also ==
 
== See also ==

Latest revision as of 06:25, 20 June 2024


{
 "Version": "2012-10-17",
 "Statement": [
   {
     "Sid": "ModifyBucketPolicy",
     "Action": [
       "s3:GetBucketPolicy",
       "s3:PutBucketPolicy"
     ],
     "Effect": "Allow",
     "Resource": "arn:aws:s3:::DOC-EXAMPLE-BUCKET"
   },
   {
     "Sid": "AccessS3Console",
     "Action": [
       "s3:GetBucketLocation",
       "s3:ListAllMyBuckets"
     ],
     "Effect": "Allow",
     "Resource": "arn:aws:s3:::*"
   }
 ]
}


Related[edit]

See also[edit]

Advertising: