I've created a cluster of 3 ES 6.3 nodes on AWS: 2 nodes acts as master and data and 1 node serves as the coordinated server with Kibana installed.
My elasticsearch.yml is configured with the ec2-discovery:
When I connect to Kibana board, I can see error "unable to connect to http://localhost:9200".
Since ec2 does not resolve to 127.0.0.1 but to the private IP it obviously fails unless I change the network.host to 0.0.0.0 which eventually works.
How can I keep using ec2 as network.host instead of changing it to 0.0.0.0?