# Elasticsearch.yml chanages 2.x to 5.x on AWS EC2 - Amazon linux

**URL:** <https://discuss.elastic.co/t/elasticsearch-yml-chanages-2-x-to-5-x-on-aws-ec2-amazon-linux/88041>\
**Category:** Elasticsearch\
**Created:** [June 2, 2017, 9:19am UTC](https://discuss.elastic.co/t/elasticsearch-yml-chanages-2-x-to-5-x-on-aws-ec2-amazon-linux/88041 "2017-06-02T09:19:34Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [June 14, 2017, 8:20pm UTC](https://discuss.elastic.co/t/elasticsearch-yml-chanages-2-x-to-5-x-on-aws-ec2-amazon-linux/88041/6 "2017-06-14T20:20:44Z")

</div>

Some comments about your settings:

- `Cloud.aws.access_key` should be `cloud.aws.access_key`.
- Remove `discovery.zen.ping.multicast.enabled: false` which is not needed anymore
- `node.zone` should become `node.attr.zone`

About deprecated settings, you can keep them for now as they are or try to migrate them to secured settings.  
But other things are going to change in the future so I'd probably wait for the latest elasticsearch 5.x version when 6.0 final will be released so you will be able to prepare the migration.

And I hope that everything will be documented at this point.

As I wrote in:

> [@Getting AWS credentials from keystore for discovery-ec2 plugin?](https://discuss.elastic.co/t/getting-aws-credentials-from-keystore-for-discovery-ec2-plugin/87958/5):
>
> I see. Sadly the documentation has not been updated yet. It needs to be: discovery.ec2.access\_key discovery.ec2.secret\_key cloud.aws.region should not be used anymore but discovery.ec2.endpoint needs to be set in elasticsearch.yml file. See [https://github.com/elastic/elasticsearch/blob/5.4/plugins/discovery-ec2/src/main/java/org/elasticsearch/discovery/ec2/AwsEc2Service.java#L181-L188](https://github.com/elastic/elasticsearch/blob/5.4/plugins/discovery-ec2/src/main/java/org/elasticsearch/discovery/ec2/AwsEc2Service.java#L181-L188) I hope this helps. cc @rjernst in case I'm saying something wrong slight_smile

You will need to register the following secured settings:

- `discovery.ec2.access_key`
- `discovery.ec2.secret_key`

And `cloud.aws.region` should not be used anymore but `discovery.ec2.endpoint` needs to be set in `elasticsearch.yml` file.

I hope this helps. If you still have warning messages or errors, please share your logs so we can provide more help.

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-yml-chanages-2-x-to-5-x-on-aws-ec2-amazon-linux/88041)._
