Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "Version": "2008-10-17",
- "Id": "Policyxxxxxxxxxxxx",
- "Statement": [
- {
- "Sid": "Stmtxxxxxxxxxxxxx",
- "Effect": "Allow",
- "Principal": {
- "AWS": "arn:aws:iam::<account_number>:root"
- },
- "Action": [
- "s3:AbortMultipartUpload",
- "s3:GetObject",
- "s3:ListMultipartUploadParts",
- "s3:PutObject"
- ],
- "Resource": "arn:aws:s3:::<bucket_name>/*"
- },
- {
- "Sid": "Stmtxxxxxxxxxxx",
- "Effect": "Allow",
- "Principal": {
- "AWS": "arn:aws:iam::<account_number>:root"
- },
- "Action": [
- "s3:PutBucketLogging",
- "s3:PutBucketNotification",
- "s3:ListBucket"
- ],
- "Resource": "arn:aws:s3:::<bucket_name>"
- }
- ]
- }
- {
- "Version":"2012-10-17",
- "Statement":[
- {
- "Sid":"111",
- "Effect":"Allow",
- "Principal":{
- "AWS":"1111111111"
- },
- "Action":"s3:PutObject",
- "Resource":"arn:aws:s3:::examplebucket/*"
- },
- {
- "Sid":"112",
- "Effect":"Deny",
- "Principal":{
- "AWS":"1111111111"
- },
- "Action":"s3:PutObject",
- "Resource":"arn:aws:s3:::examplebucket/*",
- "Condition":{
- "StringNotEquals":{
- "s3:x-amz-grant-full-control":[
- "emailAddress=xyz@amazon.com"
- ]
- }
- }
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement