Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. {
  2. "Version": "2008-10-17",
  3. "Id": "Policyxxxxxxxxxxxx",
  4. "Statement": [
  5. {
  6. "Sid": "Stmtxxxxxxxxxxxxx",
  7. "Effect": "Allow",
  8. "Principal": {
  9. "AWS": "arn:aws:iam::<account_number>:root"
  10. },
  11. "Action": [
  12. "s3:AbortMultipartUpload",
  13. "s3:GetObject",
  14. "s3:ListMultipartUploadParts",
  15. "s3:PutObject"
  16. ],
  17. "Resource": "arn:aws:s3:::<bucket_name>/*"
  18. },
  19. {
  20. "Sid": "Stmtxxxxxxxxxxx",
  21. "Effect": "Allow",
  22. "Principal": {
  23. "AWS": "arn:aws:iam::<account_number>:root"
  24. },
  25. "Action": [
  26. "s3:PutBucketLogging",
  27. "s3:PutBucketNotification",
  28. "s3:ListBucket"
  29. ],
  30. "Resource": "arn:aws:s3:::<bucket_name>"
  31. }
  32. ]
  33. }
  34.  
  35. {
  36. "Version":"2012-10-17",
  37. "Statement":[
  38. {
  39. "Sid":"111",
  40. "Effect":"Allow",
  41. "Principal":{
  42. "AWS":"1111111111"
  43. },
  44. "Action":"s3:PutObject",
  45. "Resource":"arn:aws:s3:::examplebucket/*"
  46. },
  47. {
  48. "Sid":"112",
  49. "Effect":"Deny",
  50. "Principal":{
  51. "AWS":"1111111111"
  52. },
  53. "Action":"s3:PutObject",
  54. "Resource":"arn:aws:s3:::examplebucket/*",
  55. "Condition":{
  56. "StringNotEquals":{
  57. "s3:x-amz-grant-full-control":[
  58. "emailAddress=xyz@amazon.com"
  59. ]
  60. }
  61. }
  62. }
  63. ]
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement