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
Revision as of 06:25, 20 June 2024 by Welcome (talk | contribs) (→‎Related)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


{
 "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

See also

Advertising: