How to configure elasticsearch-2.x to make cluster in AWS machine and how is it different from older versions of ES

Hi,
Can any one please tell me how to configure elasticsearch.yml file in order to make elasticsearch-2.x clusters in AWS machine.

You'll probably want to configure Elasticsearch to use the private IP:

network.host: _ec2:privateIpv4_

The cloud-aws plugin is helpful, as it can do discovery with native EC2 tools. If you're familiar with OpsWorks, you could start with this article: https://blogs.aws.amazon.com/application-management/post/Tx3MEVKS0A4G7R5/Deploying-Elasticsearch-with-OpsWorks

See also https://www.elastic.co/guide/en/elasticsearch/plugins/2.3/cloud-aws.html