# Do I need cluster.initial\_master\_nodes?

**URL:** <https://discuss.elastic.co/t/do-i-need-cluster-initial-master-nodes/301480>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [April 4, 2022, 9:17am UTC](https://discuss.elastic.co/t/do-i-need-cluster-initial-master-nodes/301480 "2022-04-04T09:17:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rachit\_upadhyay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rachit_upadhyay/32/102263_2.png) [@rachit\_upadhyay](https://discuss.elastic.co/u/rachit_upadhyay)\
**Post date:** [April 4, 2022, 9:17am UTC](https://discuss.elastic.co/t/do-i-need-cluster-initial-master-nodes/301480/1 "2022-04-04T09:17:59Z")

</div>

Below is the Elasticsearch.yml configuration for my ec2 based ECS Elasticsearch setup.

```auto
cluster.name: dashboards-elasticsearch
node.data: true
node.master: true

# node.name: ${ES_NODE_NAME:}

path.data: ${ES_DATA_PATH:/var/lib/elasticsearch}
path.logs: ${ES_LOGS_PATH:/var/log/elasticsearch}

network.host: 0.0.0.0

network.publish_host: _ec2:privateIpv4_
transport.publish_host: _ec2:privateIpv4_

http.port: 9200
transport.port: 9300

discovery.seed_providers: ec2
discovery.ec2.tag.Name: Elasticsearch-Nodes

cluster.initial_master_nodes: es-node-1, es-node-2, es-node-3

```

I have to create multiple task definition if I want to use this .yml as the node name for each master is different. So I wanted to know is it possible to not use the cluster.initial\_master\_nodes for the initial cluster bootstrap?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 2, 2022, 9:18am UTC](https://discuss.elastic.co/t/do-i-need-cluster-initial-master-nodes/301480/2 "2022-05-02T09:18:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
