Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. {
  2. "Version": "2012-10-17",
  3. "Statement": [
  4. {
  5. "Sid": "AWSCloudTrailGetACLOrgPermission",
  6. "Effect": "Allow",
  7. "Principal": {
  8. "Service": "cloudtrail.amazonaws.com"
  9. },
  10. "Action": "s3:GetBucketAcl",
  11. "Resource": "arn:aws:s3:::MY_CLOUDTRAIL_BUCKET"
  12. },
  13. {
  14. "Sid": "AWSCloudTrailWriteOrgPermission",
  15. "Effect": "Allow",
  16. "Principal": {
  17. "Service": "cloudtrail.amazonaws.com"
  18. },
  19. "Action": "s3:PutObject",
  20. "Resource": [
  21. "arn:aws:s3:::MY_CLOUDTRAIL_BUCKET/AWSLogs/YOUR_ORG_ID/*"
  22. ],
  23. "Condition": {
  24. "StringEquals": {
  25. "s3:x-amz-acl": "bucket-owner-full-control"
  26. }
  27. }
  28. }
  29. ]
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement