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?"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | * https://repost.aws/knowledge-center/s3-access-denied-bucket-policy | ||
+ | <pre> | ||
+ | { | ||
+ | "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:::*" | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | </pre> | ||
− | |||
+ | == Related == | ||
[[s3:]] | [[s3:]] | ||
[[s3:GetBucketPolicy]] | [[s3:GetBucketPolicy]] | ||
[[s3:PutBucketPolicy]] | [[s3:PutBucketPolicy]] | ||
− | |||
− | |||
[[Error: Error putting S3 policy: AccessDenied: Access Denied]] | [[Error: Error putting S3 policy: AccessDenied: Access Denied]] | ||
Revision as of 08:41, 24 July 2023
{ "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
s3: s3:GetBucketPolicy s3:PutBucketPolicy Error: Error putting S3 policy: AccessDenied: Access Denied
See also
Advertising: