# ElasticSearch using EC2 and VPC - Cluster doesn't form in any way

**URL:** <https://discuss.elastic.co/t/elasticsearch-using-ec2-and-vpc-cluster-doesnt-form-in-any-way/16090>\
**Category:** Elasticsearch\
**Created:** [March 2, 2014, 11:33am UTC](https://discuss.elastic.co/t/elasticsearch-using-ec2-and-vpc-cluster-doesnt-form-in-any-way/16090 "2014-03-02T11:33:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoav\_Zuri](https://avatars.discourse-cdn.com/v4/letter/y/ed8c4c/32.png) [@Yoav\_Zuri](https://discuss.elastic.co/u/Yoav_Zuri)\
**Post date:** [March 2, 2014, 11:33am UTC](https://discuss.elastic.co/t/elasticsearch-using-ec2-and-vpc-cluster-doesnt-form-in-any-way/16090/1 "2014-03-02T11:33:27Z")

</div>

Hello,

I need to configure ElasticSearch cluster in EC2 VPC and it seems like  
something's blocking me from doing so.

My configuation:

elastic1 - 172.16.1.20 - config file:

node.name: elastic1  
cluster.name: logstash  
cloud:  
aws:  
access\_key: AKIXXXXXXXXXXXX  
secret\_key: 6gGUXXXXXXXXXXXXXXXXXXXXXXXXXXX  
region: "us-east-1"

discovery.zen.ping.multicast.enabled: false  
discovery.type: ec2

elastic2 - 172.16.1.21 - config file:

node.name: elastic2  
cluster.name: logstash  
cloud:  
aws:  
access\_key: AKIXXXXXXXXXXXX  
secret\_key: 6gGUXXXXXXXXXXXXXXXXXXXXXXXXXXX  
region: "us-east-1"

discovery.zen.ping.multicast.enabled: false  
discovery.type: ec2

My VPC has route for 172.16.1.0/24 to local  
Security Group is open to any traffic from the same SG.

Telnet works both ways for 9200 & 9300

Log example:  
[2014-03-02 09:44:12,139][TRACE][discovery.ec2] [elastic2]  
adding i-b7bb9796, address 172.16.1.21, transport\_address  
inet[/172.16.1.21:9300]  
[2014-03-02 09:44:12,140][TRACE][discovery.ec2] [elastic2]  
adding i-02bb9723, address 172.16.1.20, transport\_address  
inet[/172.16.1.20:9300]

But it doesn't work in any way.

[root@elastic1 elasticsearch]# curl -s  
[http://localhost:9200/\_cluster/health?pretty=true](http://localhost:9200/_cluster/health?pretty=true)  
{  
"cluster\_name" : "visadd",  
"status" : "green",  
"timed\_out" : false,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 0,  
"active\_shards" : 0,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 0  
}

elastic1 nmap -p- scan of 172.16.1.21:  
22/tcp open ssh  
9200/tcp open wap-wsp  
9300/tcp open vrace

Any help will be appreciated!

Best Regards,  
Yoav Zuri

--  
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/34f85e82-e316-4908-805f-c336f3ba33bb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/34f85e82-e316-4908-805f-c336f3ba33bb%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:46am UTC](https://discuss.elastic.co/t/elasticsearch-using-ec2-and-vpc-cluster-doesnt-form-in-any-way/16090/2 "2017-07-06T01:46:19Z")

</div>


