# How can I bind my elb to Elasticsearch cluster on ECE

**URL:** <https://discuss.elastic.co/t/how-can-i-bind-my-elb-to-elasticsearch-cluster-on-ece/92795>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [July 12, 2017, 10:59am UTC](https://discuss.elastic.co/t/how-can-i-bind-my-elb-to-elasticsearch-cluster-on-ece/92795 "2017-07-12T10:59:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![weibin.wu](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@weibin.wu](https://discuss.elastic.co/u/weibin.wu)\
**Post date:** [July 12, 2017, 10:59am UTC](https://discuss.elastic.co/t/how-can-i-bind-my-elb-to-elasticsearch-cluster-on-ece/92795/1 "2017-07-12T10:59:43Z")

</div>

Hi ECE

I created an elb in front of my ECE cluster. So I can use url to access like this.  
http:// [ELB\_DNS] :12400/#/region/ece-region/allocators

Therefore, I replace the IP in the cluster endpoint  
From  
[ip].ip.es.io  
To  
[elb\_dns].ip.es.io

But I can't access my cluster endpoint  
http://[cluster\_id].[elb\_dns].ip.es.io:9200/

The purpose of doing this is to remove any IP specific URL and use ELB specific URL.

Any advice? thanks.

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [July 13, 2017, 4:28pm UTC](https://discuss.elastic.co/t/how-can-i-bind-my-elb-to-elasticsearch-cluster-on-ece/92795/2 "2017-07-13T16:28:59Z")

</div>

Hi @weibin.wu

All `[anything].[ip].ip.es.io` does is to resolve via DNS to `[ip]` . It's just intended to act as a stop gap before you have DNS set up yourself, eg for getting up and running quickly

Now you have `elb_dns`, you should set up your in DNS provider (eg route 53) for `*.elb_dns` to resolve to `elb_dns`, and then change the "Cluster endpoints" (under `platform > settings` in the UI) to be just `elb_dns`

Then each cluster endpoint will be `[cluster_id].[elb_dns]` which will resolve (via your DNS provider) to the IP of `elb_dns`, which will route to the proxy and thence (via the `[cluster_id]` prefix) to the cluster itself

Does that make sense? Let us know if you run into issues

Alex

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [July 13, 2017, 4:35pm UTC](https://discuss.elastic.co/t/how-can-i-bind-my-elb-to-elasticsearch-cluster-on-ece/92795/3 "2017-07-13T16:35:54Z")

</div>

@weibin.wu

Sorry I just reread, and noticed:

> I created an elb in front of my ECE cluster. So I can use url to access like this.  
> http:// [ELB\_DNS] :12400/#/region/ece-region/allocators

Note that there are two different uses for an ELB -

- to hit the admin API/UI on 12400
- to hit the clusters via the proxy on 80/443/9200/9243

These are two completely different functions. The same ELB can do both via the port, eg 12400 should go to any IPs that run an adminconsole service, and 80/443/9200/9243 etc should go to any IPs that run a proxy service

Obviously if you have hosts that always run both proxies and adminconsoles, then it's an academic distinction, but I did want to be clear that it exists 🙂

The above information on setting up your DNS provider to be able to hit the proxy is all still valid.

---

<div class="post-metadata">

**Author:** ![weibin.wu](https://avatars.discourse-cdn.com/v4/letter/w/4491bb/32.png) [@weibin.wu](https://discuss.elastic.co/u/weibin.wu)\
**Post date:** [July 14, 2017, 2:33am UTC](https://discuss.elastic.co/t/how-can-i-bind-my-elb-to-elasticsearch-cluster-on-ece/92795/4 "2017-07-14T02:33:20Z")

</div>

Okay, cool. Thanks for the tips. Worked with our SA and problem solve. Thanks.

---

<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 28, 2017, 2:33am UTC](https://discuss.elastic.co/t/how-can-i-bind-my-elb-to-elasticsearch-cluster-on-ece/92795/5 "2017-07-28T02:33:35Z")

</div>

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