Created
December 3, 2015 23:42
-
-
Save sthomp/6b369841a42087e4b183 to your computer and use it in GitHub Desktop.
Sample elasticsearch access policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": "es:*", | |
"Resource": "arn:aws:es:xxxxxxxxxxx:domain/<my-search-domain>/*", | |
"Condition": { | |
"IpAddress": { | |
"aws:SourceIp": [ | |
"x.x.x.x", | |
"x.x.x.x/32" | |
] | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment