I am trying to get the EC2 Discovery Plugin to work. But first. Do I have to set the cluster.initial_master_nodes? I don't like to hardcode the ip addresse is there a way to avoid that?
cat > /etc/elasticsearch/elasticsearch.yml << EOF
cluster.name: gyldendal_es
path.data: /var/es/lib/elasticsearch
path.logs: /var/es/log/elasticsearch
network.host: ec2
discovery.seed_providers: ec2
discovery.ec2.protocol: http
discovery.ec2.endpoint: ec2.eu-west-1.amazonaws.com
discovery.ec2.host_type: private_ip
discovery.ec2.groups: es-sg
discovery.ec2.any_group: true
EOF