The EC2 discovery plugin uses the AWS API for unicast discovery.
If you are looking for a hosted solution of Elasticsearch on AWS, please visit http://www.elastic.co/cloud.
This plugin can be installed using the plugin manager:
sudo bin/elasticsearch-plugin install discovery-ec2
The plugin must be installed on every node in the cluster, and each node must be restarted after installation.
This plugin can be downloaded for offline install from https://artifacts.elastic.co/downloads/elasticsearch-plugins/discovery-ec2/discovery-ec2-6.4.3.zip.
The plugin can be removed with the following command:
sudo bin/elasticsearch-plugin remove discovery-ec2
The node must be stopped before removing the plugin.