Skip to content

Instantly share code, notes, and snippets.

@sthomp
Created December 3, 2015 23:42
Show Gist options
  • Save sthomp/6b369841a42087e4b183 to your computer and use it in GitHub Desktop.
Save sthomp/6b369841a42087e4b183 to your computer and use it in GitHub Desktop.
Sample elasticsearch access policy
{
"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