Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. {
  2. "Version": "2012-10-17",
  3. "Id": "http referer policy example",
  4. "Statement": [
  5. {
  6. "Sid": "Allow get requests originating from www.example.com and example.com.",
  7. "Effect": "Allow",
  8. "Principal": "*",
  9. "Action": "s3:GetObject",
  10. "Resource": "arn:aws:s3:::s3-foo-bar/*",
  11. "Condition": {
  12. "StringLike": {
  13. "aws:Referer": [
  14. "http://www.example.com/*",
  15. "http://example.com/*"
  16. ]
  17. }
  18. }
  19. }
  20.  
  21. {
  22. "Id": "S3PolicyId1",
  23. "Statement": [
  24. {
  25. "Sid": "IPDeny",
  26. "Effect": "Deny",
  27. "Principal": {
  28. "AWS": "*"
  29. },
  30. "Action": "s3:*",
  31. "Resource": "arn:aws:s3:::s3-foo-bar/*",
  32. "Condition": {
  33. "NotIpAddress": {
  34. "aws:SourceIp": "Your IP Address CIDR Notation"
  35. }
  36. }
  37. }
  38. ]
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement