UNPKG

aws-es-kibana-xt

Version:
44 lines (23 loc) 1.67 kB
[![npm version](https://badge.fury.io/js/aws-es-kibana.svg)](https://www.npmjs.com/package/aws-es-kibana-xt) [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/edwanyoike/aws-es-kibana-xt) # AWS ES/Kibana Proxy AWS ElasticSearch/Kibana Proxy to access your [AWS ES](https://aws.amazon.com/elasticsearch-service/) cluster. This is the solution for accessing your cluster if you have [configured access policies](http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-access-policies) for your ES domain ## Usage #### Install the npm module npm install -g aws-es-kibana-xt #### Set AWS credentials as environment variables as the example below export AWS_ACCESS_KEY_ID="AIUDUBSUNSKDKSMKMKSNDKSDNSJ" export AWS_SECRET_ACCESS_KEY="sdefescvrefdc/casedfwedfwa" export AWS_REGION="eu-west-1" export ENDPOINT="search-xxxxx.us-west-2.es.amazonaws.com" #this is your ElasticSearch endpoint #### Run the proxy in two ways 1. if you have set region and endpoint in your environment variables ```aws-es-kibana-xt ``` 2. if you have not set region and endpoint in your environment variables ``` aws-es-kibana-xt --region eu-west-1 --endpoint search-mykibana-es-uat-testing.eu-west-1.es.amazonaws.com ``` #### or ```aws-es-kibana-xt -r eu-west-1 -e search-mykibana-es-uat-testing.eu-west-1.es.amazonaws.com``` #### Run within docker container (under review) ## Credits Adopted from this [gist](https://gist.github.com/nakedible-p/ad95dfb1c16e75af1ad5). Thanks [@nakedible-p](https://github.com/nakedible-p)