I'm trying to setup elasticsearch cluster on ECS on AWS. I'm able to start 3 elasticsearch nodes, each on separate host but I'm not able to connect those instances to one cluster. I've checked https://medium.com/@devfire/deploying-the-elk-stack-on-amazon-ecs-dd97d671df06 this tutorial and everything works perfectly but it's for version 5.6.4, when I tried it with 7.4.0 or 7.4.2 it doesn't work. I went through discovery ec2 plugin documentation and I've updated the elasticsearch.yml file but it still does not work.
Here my lastest elasticsearch.yml file:
With this setup I was able to start 2 docker containers on one host and they connected to one cluster, but the idea is that we want to have elasticsearch node per host.
Any ideas what is wrong?