s3_splunk_bucket_policy.json.tpl 680 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "Version": "2012-10-17",
  3. "Id": "SmartStoreBucketPolicy",
  4. "Statement": [
  5. {
  6. "Sid": "RestrictedAllow",
  7. "Effect": "Allow",
  8. "Principal": {
  9. "AWS": [
  10. "${role_arn}"
  11. ]
  12. },
  13. "Action": [
  14. "s3:*"
  15. ],
  16. "Resource": [
  17. "${bucket_arn}",
  18. "${bucket_arn}/*"
  19. ],
  20. "Condition": {
  21. "IpAddress": {"aws:SourceIp": "${vpc_cidr}"}
  22. }
  23. },
  24. {
  25. "Action": "s3:*",
  26. "Effect": "Allow",
  27. "Resource": [
  28. "${bucket_arn}",
  29. "${bucket_arn}/*"
  30. ],
  31. "Principal": {
  32. "AWS": [
  33. "arn:aws:iam::${account}:root"
  34. ]
  35. }
  36. }
  37. ]
  38. }