Guest User

Untitled

a guest
Apr 19th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. {
  2. "Version": "2012-10-17",
  3. "Id": "Policy1523289797898",
  4. "Statement": [
  5. {
  6. "Sid": "DenyRestrictedResultsAccess",
  7. "Effect": "Deny",
  8. "NotPrincipal": {
  9. "AWS": [
  10. "arn:aws:iam::{{ aws_account_id }}:user/{{ aws_user_name }}"
  11. ]
  12. },
  13. "Action": "s3:GetObject",
  14. "Resource": "arn:aws:s3:::aws-athena-query-results-{{ aws_account_id }}-us-east-1/*",
  15. "Condition": {
  16. "StringEquals": {
  17. "s3:ExistingObjectTag/restriced_data": "True"
  18. }
  19. }
  20. },
  21. {
  22. "Sid": "DenyPolicyUpdates",
  23. "Effect": "Deny",
  24. "NotPrincipal": {
  25. "AWS": [
  26. "arn:aws:iam::{{ aws_account_id }}:user/{{ aws_user_name }}"
  27. ]
  28. },
  29. "Action": "s3:PutBucketPolicy",
  30. "Resource": "arn:aws:s3:::aws-athena-query-results-{{ aws_account_id }}-us-east-1"
  31. }
  32. ]
  33. }
Add Comment
Please, Sign In to add comment