Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. {
  2. "Version": "2012-10-17",
  3. "Statement": [
  4. {
  5. "Effect": "Allow",
  6. "Principal": {
  7. "AWS": "arn:aws:iam::Account3:root"
  8. },
  9. "Action": [
  10. "s3:GetBucketLocation",
  11. "s3:ListBucket"
  12. ],
  13. "Resource": "arn:aws:s3:::my-magic-bucket"
  14. },
  15. {
  16. "Effect": "Allow",
  17. "Principal": {
  18. "AWS": "arn:aws:iam::Account3:root"
  19. },
  20. "Action": "s3:GetObject",
  21. "Resource": "arn:aws:s3:::my-magic-bucket/*"
  22. },
  23. {
  24. "Effect": "Allow",
  25. "Principal": {
  26. "AWS": "arn:aws:iam::Account2:root"
  27. },
  28. "Action": [
  29. "s3:GetBucketLocation",
  30. "s3:ListBucket",
  31. "s3:GetBucketAcl"
  32. ],
  33. "Resource": "arn:aws:s3:::my-magic-bucket"
  34. },
  35. {
  36. "Effect": "Allow",
  37. "Principal": {
  38. "AWS": "arn:aws:iam::Account2:root"
  39. },
  40. "Action": [
  41. "s3:GetObject",
  42. "s3:PutObject",
  43. "s3:GetObjectAcl",
  44. "s3:PutObjectAcl"
  45. ],
  46. "Resource": "arn:aws:s3:::my-magic-bucket/*"
  47. }
  48. ]
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement