Skip to content

Instantly share code, notes, and snippets.

@vineettalwar
Created November 23, 2019 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vineettalwar/338d2950c693b6d18c69f372c4d8527e to your computer and use it in GitHub Desktop.
Save vineettalwar/338d2950c693b6d18c69f372c4d8527e to your computer and use it in GitHub Desktop.
Elastic Search AWS Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "es:*",
"Resource": "arn:aws:es:<region>:<account_id>:domain/<elasticsearch_domain/*",
"Condition": {
"IpAddress": {
"aws:SourceIp": [
"xx.xx.xx.xx",
"xx.xx.xx.xx",
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment