{
"Version": "2012-10-17",
"Statement": [ {
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::xxxxxxxxxx:role/some-role"
},
"Action": "es:*",
"Resource": "arn:aws:es:us-west-1:xxxxxxxx:domain/theprodname/*"
}
]
}
I want to set my elastic search service to private. What I mean by "private" is:
- No access from outside the world (No http requests)
- My own aws ec2 server can access it.
I added my aws IAM Role ARN to the principle and it turns out that I still cannot use the es service on my website.
Any idea? Thanks in advance.
I tried the answer from Proper access policy for Amazon Elastic Search Cluster. But It does not work for my case.