# Elasticsearch 5.4.0 fails to cluster on ec2 and cloud.aws.region deprecation WARN

**URL:** <https://discuss.elastic.co/t/elasticsearch-5-4-0-fails-to-cluster-on-ec2-and-cloud-aws-region-deprecation-warn/84725>\
**Category:** Elasticsearch\
**Created:** [May 5, 2017, 1:39pm UTC](https://discuss.elastic.co/t/elasticsearch-5-4-0-fails-to-cluster-on-ec2-and-cloud-aws-region-deprecation-warn/84725 "2017-05-05T13:39:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jecnua](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jecnua/32/4896_2.png) [@jecnua](https://discuss.elastic.co/u/jecnua)\
**Post date:** [May 5, 2017, 1:39pm UTC](https://discuss.elastic.co/t/elasticsearch-5-4-0-fails-to-cluster-on-ec2-and-cloud-aws-region-deprecation-warn/84725/1 "2017-05-05T13:39:33Z")

</div>

Environment:

- es 5.4.0 on docker
- aws ec2 cluster

==

Hi all,

I am trying to deploy a new cluser of es 5.4.0 on aws.  
I am using the same tf code and a similar docker image (I needed to change some minor details due to the centos migration) but the clauster fails to form.  
To be precise I can see the following WARN:

`[2017-05-05T13:10:32,470][WARN][o.e.d.c.s.Setting] [cloud.aws.region] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.`

And after:

`[2017-05-05T13:10:32,473][INFO][o.e.d.DiscoveryModule] [xxx.ec2.internal] using discovery type [zen]`

I looked again at the the docs but I didn't find anything regarding cloud.aws.region deprecation.  
Not in this version:  
[https://www.elastic.co/guide/en/elasticsearch/plugins/5.4/discovery-ec2-discovery.html](https://www.elastic.co/guide/en/elasticsearch/plugins/5.4/discovery-ec2-discovery.html)  
or the next  
[https://www.elastic.co/guide/en/elasticsearch/plugins/5.x/discovery-ec2-discovery.html](https://www.elastic.co/guide/en/elasticsearch/plugins/5.x/discovery-ec2-discovery.html)

Anybody saw this error or has any idea on what is causing it?

Regards,  
F.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [May 5, 2017, 1:49pm UTC](https://discuss.elastic.co/t/elasticsearch-5-4-0-fails-to-cluster-on-ec2-and-cloud-aws-region-deprecation-warn/84725/2 "2017-05-05T13:49:49Z")

</div>

You can find the changes that you're looking for [here](https://www.elastic.co/guide/en/elasticsearch/reference/master/breaking_60_plugins_changes.html).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 5, 2017, 2:05pm UTC](https://discuss.elastic.co/t/elasticsearch-5-4-0-fails-to-cluster-on-ec2-and-cloud-aws-region-deprecation-warn/84725/3 "2017-05-05T14:05:24Z")

</div>

I agree that it's not super easy to find even though it's stated `See the breaking changes documentation for the next major version.`.

I believe that we should stop documenting the `region` field from 5.4 docs. I note that we are still documenting `region` in our master docs. [https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-s3-repository.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-s3-repository.html)

But I know that @rjernst wants to clean that documentation after all the changes are made.

---

<div class="post-metadata">

**Author:** ![jecnua](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jecnua/32/4896_2.png) [@jecnua](https://discuss.elastic.co/u/jecnua)\
**Post date:** [May 5, 2017, 2:09pm UTC](https://discuss.elastic.co/t/elasticsearch-5-4-0-fails-to-cluster-on-ec2-and-cloud-aws-region-deprecation-warn/84725/4 "2017-05-05T14:09:31Z")

</div>

Thanks @jasontedor and @dadoonet.  
Sorry I missed that.  
I think updating the main ec2 plugin page will solve most of the problems 🙂

---

<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:** [June 2, 2017, 2:17pm UTC](https://discuss.elastic.co/t/elasticsearch-5-4-0-fails-to-cluster-on-ec2-and-cloud-aws-region-deprecation-warn/84725/5 "2017-06-02T14:17:42Z")

</div>

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