# EC2 Discovery

**URL:** <https://discuss.elastic.co/t/ec2-discovery/16503>\
**Category:** Elasticsearch\
**Created:** [March 20, 2014, 6:18pm UTC](https://discuss.elastic.co/t/ec2-discovery/16503 "2014-03-20T18:18:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IronMan2014](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IronMan2014](https://discuss.elastic.co/u/IronMan2014)\
**Post date:** [March 20, 2014, 6:18pm UTC](https://discuss.elastic.co/t/ec2-discovery/16503/1 "2014-03-20T18:18:49Z")

</div>

I can't seem to make my EC2 cluster of 2 nodes work.

- If I comment out the section below, I can connect to each instance  
individually.
- With the sections included as below, I can connect to node 1, but node 2  
gives me "Request failed to get to the server (status code: 0):"

cluster.name: myCluster  
node.name: "node 1"

cloud:

aws:

```
   access_key: <MY ACCESSKEY>

   secret_key: <My SecretKEY>

```

discovery:

type: ec2

////////////////////////  
cluster.name: myCluster  
node.name: "node 2"

cloud:

aws:

```
  access_key: <MY ACCESSKEY>

  secret_key: <My SecretKEY>

```

discovery:

type: ec2

I also tried with:

discovery.zen.ping.multicast.enabled: false

discovery.zen.ping.unicast.hosts: ["Instance\_1 IP:9300", "instance\_2  
IP:9300"]

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2877c25a-c2f9-4f26-96b4-1b02ba1c3fd0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2877c25a-c2f9-4f26-96b4-1b02ba1c3fd0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:41am UTC](https://discuss.elastic.co/t/ec2-discovery/16503/2 "2017-07-06T01:41:48Z")

</div>


