dejavu icon indicating copy to clipboard operation
dejavu copied to clipboard

Cannot connect to AWS hosted Elasticsearch cluster

Open itsmichaelk opened this issue 3 years ago • 2 comments

General information

  • Elasticsearch Version: 7.9

Issue Description

Cannot connect to Elastic Search cluster hosted in AWS Elasticsearch Service. In AWS in have the VPC https://vpc-nos-demo-XXXXXXXXXX.eu-central-1.es.amazonaws.com

When I open this link in the browser, I get a JSON with all the data about my cluster. But when I insert this link in the dejavu connector, I get an error stating that the connection was not successfull.

Sadly I cannot see anything in the docker container's logs..

How can I get this UI to work with the hosted ES? Thanks in advance!!

itsmichaelk avatar Apr 23 '21 07:04 itsmichaelk

When I use the same url with :9200 at the end, it seems like it's loading but it looks like it's in an endless loop since nothing happens. Bildschirmfoto 2021-04-23 um 10 27 46

Edit: after approx. 2-3 minutes it stops loading and I get this (the same message when I don't add 9200 to end of the URL): Bildschirmfoto 2021-04-23 um 10 32 56

itsmichaelk avatar Apr 23 '21 08:04 itsmichaelk

This is most certainly a CORS issue, you need to either deploy a simple API Gateway with proxy passthrough to your cluster, or host an nginx proxy or something.

aaronfay avatar Jul 14 '21 02:07 aaronfay