# Bootstrapping Elasticsearch 7.2.0 on AWS ECS

**URL:** <https://discuss.elastic.co/t/bootstrapping-elasticsearch-7-2-0-on-aws-ecs/193422>\
**Category:** Elasticsearch\
**Created:** [August 1, 2019, 11:16pm UTC](https://discuss.elastic.co/t/bootstrapping-elasticsearch-7-2-0-on-aws-ecs/193422 "2019-08-01T23:16:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suryatej\_Mukkamalla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suryatej_mukkamalla/32/51474_2.png) [@Suryatej\_Mukkamalla](https://discuss.elastic.co/u/Suryatej_Mukkamalla)\
**Post date:** [August 1, 2019, 11:16pm UTC](https://discuss.elastic.co/t/bootstrapping-elasticsearch-7-2-0-on-aws-ecs/193422/1 "2019-08-01T23:16:56Z")

</div>

Hello,

I am trying to get a cluster up and running on AWS. I have the ECS cluster created, containers assigned, but whenever the Elasticsearch tasks try to begin, it fails on the bootstrapping section with the following error:

`[2019-08-01T22:44:38,730][WARN][o.e.c.c.ClusterFormationFailureHelper] [80224704d1af] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and [cluster.initial_master_nodes] is empty on this node: have discovered [{a45dbc021a35}{z4gdvtVIR6mZlk9_YmS5iA}{hHgsihl_SsW2yCeTUq6zvA}{10.19.27.206}{10.19.27.206:9300}{aws_availability_zone=us-west-2a, ml.machine_memory=30064771072, ml.max_open_jobs=20, xpack.installed=true}, {f2c7fc02cc7d}{7EoblbjKQtyh9UsRC8VKzg}{sdUY893nS0u7y9PGBYDg5g}{10.19.151.235}{10.19.151.235:9300}{aws_availability_zone=us-west-2c, ml.machine_memory=30064771072, ml.max_open_jobs=20, xpack.installed=true}]; discovery will continue using [127.0.0.1:9300, 10.19.29.62:9300, 10.19.27.206:9300, 10.19.151.235:9300, 10.19.70.82:9300, 10.19.25.225:9300, 10.19.108.106:9300, 10.19.4.78:9300, 10.19.136.101:9300, 10.19.85.235:9300] from hosts providers and [{80224704d1af}{9teQjoEMTYeQZ6wAVngDJQ}{QWnPveM8RmidzPfghN-JCA}{10.19.85.235}{10.19.85.235:9300}{aws_availability_zone=us-west-2b, ml.machine_memory=30064771072, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0`

From this document [here](https://discuss.elastic.co/t/elasticsearch-7-0-bootstrapping-in-aws/176491/15), it looks like when starting a cluster, Elasticsearch needs to know the full list of master-eligible nodes. However, if I'm using ECS Auto Scaling Group to create the instances for the nodes, I won't know the node hosts ahead of time.

How should I go about addressing this issue? Previously, on v. 5.6.1, we used the discovery.ec2 plugin to find all the nodes that belong in a cluster. Why isn't this continuing to work as expected?

---

<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:** [August 29, 2019, 11:17pm UTC](https://discuss.elastic.co/t/bootstrapping-elasticsearch-7-2-0-on-aws-ecs/193422/2 "2019-08-29T23:17:10Z")

</div>

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