Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Elasticsearch & VPC - configuring network access from my fixed IP

I am unable to access AWS Elasticsearch Kibana with a browser.

I have set up an Elasticsearch instance within my VPC exactly as described here;

https://aws.amazon.com/blogs/aws/amazon-elasticsearch-service-now-supports-vpc/

I used the default IAM access policy template which is basicaly all current IAM profiles (*)

My EC2 webapp (xenforo forum) is happily connected and chugging away.

I would like to access my elasticsearch domain kibana endpoint via browser from my home PC.

The security group I attached to the cluster configuration includes a rule to allow ALL TCP inbound from my home broadband fixed IP address.

I log into the AWS console, click the Kibana link from the elasticsearch domain overview and... nothing, times out.

I have read everything I can find on the matter. No joy - except perhaps I should be signing my https requests as well which seems crazy complicated and my understanding is that IP access should be configurable with security groups?

Can anyone clarify?

like image 205
ericTbear Avatar asked Nov 09 '17 03:11

ericTbear


People also ask

What is AWS Elasticsearch?

Elasticsearch is a distributed search and analytics engine built on Apache Lucene. Since its release in 2010, Elasticsearch has quickly become the most popular search engine and is commonly used for log analytics, full-text search, security intelligence, business analytics, and operational intelligence use cases.

Is AWS Elasticsearch a database?

Amazon Elasticsearch is a full-text, distributed NoSQL database. In other words, it uses documents rather than schema or tables, which allows for real-time search and analysis of your data.

What is AWS Elasticsearch and Kibana?

Elasticsearch is an open-source, distributed search, and analytics engine used for log analytics and full text search. Kibana is a data aggregation and visualization tool. Kibana enables you to explore, visualize, analyze, and discover data in real time with Amazon ES.

Is Elasticsearch same as OpenSearch?

The Amazon Elasticsearch Service was renamed to Amazon OpenSearch Service on September 8th 2021 according to the official AWS open-source blog.


1 Answers

to access Kibana, it seems the only way is pass proper header with your requests to.

We solved it by using https://github.com/abutaha/aws-es-proxy - its not niciest, but works for us.

  • requires to have aws-cli installed
  • requires to do bit of setup, but works well afterwards

hope it helps

like image 111
Michal Hatak Avatar answered Oct 21 '22 06:10

Michal Hatak