I want to run Elastic Search on an EC2 Instance, and access it globally. But upon changing its config to
cluster.name: elasticsearch
network.host: XX.XXX.XX.XX
(Associated Elastic IP)
It throws an error :
Caused by: java.net.BindException: Cannot assign requested address: bind
I suppose it was unable to bind to the public Ip Address
Then
I tried binding it to 0.0.0.0
as mentioned in Elasticsearch cannot start when bind to public ip address
(I had to add discovery.seed_hosts: []
since I am running a single instance).
It runs, but locally.
I cannot find any way to access it globally. Help!
Also I have added port 9200 in inbound rules or EC2
PS: Please mention any additional required information in the comments.