Modified to use ElasticSearch 1.2.1 and aws plugin 2.1.1