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