AWS

Login in to AWS as the root user

  • Go to https://signin.aws.amazon.com/
  • Click the Sign In to the Console button
  • Choose the Root user sign in option
  • Enter the root user email address
  • Click the Next button
  • Enter the root user password
  • Click the Sign in button
  • On the AWS Management Console page, find and click on Elasticsearch Service
  • You'll now be on the Amazon Elasticsearch Service dashboard page

Modify the access policy

  • Login in to AWS as the root user
  • Click the digitalarchive domain on the Amazon Elasticsearch Service dashboard page
  • Choose Modify access policy from the Actions dropdown

Normally, the access policy should be specified as shown below to limit anonymous access to searching only. For development and debugging purposes, you can temporarily remove /_search from the end of the Resource to allow access from the Kibana developer tools.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "*"
      },
      "Action": "es:*",
      "Resource": "arn:aws:es:us-east-2:0xxxxxxxxxx8:domain/digitalarchive/*/_search"
    }
  ]
}

Kibana

The examples in this section all use myindex as the index name.

To use Kibana to view actual JSON for an AvantElasticsearch search, follow the steps to
execute Elasticsearch query in Kibana

Show mappings
GET /myindex/_mapping/_doc

This example will return up to 2000 results.

GET myindex/_search
{ 
  "query": {
    "match_all": {}
  }  , "size": 2000
}
Delete an index
DELETE /myindex

The response should be

{
  "acknowledged" : true
}