Access AWS Elasticsearch from AWS Beanstalk

Viewed 980

I have an Elasticsearch Service instance on AWS and an Elastic Beanstalk one.

I want to give read-only access to beanstalk however beanstalk doesn't have a static ip address be default and with a bit of googling it is too much trouble to add one.

I therefore gave access to the aws account but that doesnt seem to work. I am still getting the error:

"User: anonymous is not authorized to perform: es:ESHttpPost

When I set it to public access everything works so I am certain I am doing something wrong here:

{
 "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::xxx:root"
      },
      "Action": "es:*",
      "Resource": "arn:aws:es:eu-central-1:xxx:domain/xxx-elastic-search/*"
    }
  ]
}
1 Answers
Related