# Multiple nodes on EC2

**URL:** <https://discuss.elastic.co/t/multiple-nodes-on-ec2/2345>\
**Category:** Elasticsearch\
**Created:** [June 10, 2015, 3:55pm UTC](https://discuss.elastic.co/t/multiple-nodes-on-ec2/2345 "2015-06-10T15:55:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![refaelos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/refaelos/32/516_2.png) [@refaelos](https://discuss.elastic.co/u/refaelos)\
**Post date:** [June 10, 2015, 3:55pm UTC](https://discuss.elastic.co/t/multiple-nodes-on-ec2/2345/1 "2015-06-10T15:55:16Z")

</div>

Does anyone have a good tutorial on how to install multiple ES nodes on multiple EC2 instances?

I tried many tutorial and nothing works... each instance just assigned itself as master.  
(NOTE: my instances are in 2 zones: us-east-1a and us-east-1b)

Here is my ES configuration for AWS:

```auto
cluster.name: testcluster
cloud.aws.access_key: ***
cloud.aws.secret_key: ***
cloud.aws.region: us-east
discovery.type: ec2
discovery.ec2.tag.Name: "AWS Test Cluster"
http.cors.enabled: true
http.cors.allow-origin: "*"
discovery.ec2.tag.Environment: Staging
discovery.ec2.ping_timeout: 5s

```

---

<div class="post-metadata">

**Author:** ![refaelos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/refaelos/32/516_2.png) [@refaelos](https://discuss.elastic.co/u/refaelos)\
**Post date:** [June 10, 2015, 5:14pm UTC](https://discuss.elastic.co/t/multiple-nodes-on-ec2/2345/2 "2015-06-10T17:14:20Z")

</div>

It appears to just start working after some time ... not sure why/how.  
You can close this topic.

---

<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:** [July 6, 2017, 12:08am UTC](https://discuss.elastic.co/t/multiple-nodes-on-ec2/2345/3 "2017-07-06T00:08:32Z")

</div>


