AWS ES/Kibana ProxyAWS ElasticSearch/Kibana Proxy to access your AWS ES cluster.
This is the solution for accessing your cluster if you have configured access policies for your ES domain
UsageInstall the npm module
Set AWS credentials
npm install -g aws-es-kibana
Run the proxy (do not include the
https from your
cluster-endpoint or the proxy won't function)
Where cluster-endpoint can be either a URL (i.e. https://search-xxxxx.us-west-2.es.amazonaws.com) or a hostname (i.e. search-xxxxx.us-west-2.es.amazonaws.com).
Alternatively, you can set the AWSPROFILE environment variable
Example with hostname as cluster-endpoint:
AWS_PROFILE=myprofile aws-es-kibana <cluster-endpoint>
Run within docker containerIf you are familiar with Docker, you can run
aws-es-kibana within a Docker container
You can pull the official container for use
(or) Build the image
docker pull santthosh/aws-es-kibana:latest
Run the container (do not forget to pass the required environment variables)
docker build -t aws-es-kibana .
docker run -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -p 127.0.0.1:9200:9200 aws-es-kibana -b 0.0.0.0 <cluster-endpoint>