# AWS discovery doesn't work

**URL:** <https://discuss.elastic.co/t/aws-discovery-doesnt-work/90359>\
**Category:** Elasticsearch\
**Created:** [June 21, 2017, 8:38pm UTC](https://discuss.elastic.co/t/aws-discovery-doesnt-work/90359 "2017-06-21T20:38:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sherabi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sherabi/32/19391_2.png) [@sherabi](https://discuss.elastic.co/u/sherabi)\
**Post date:** [June 21, 2017, 8:38pm UTC](https://discuss.elastic.co/t/aws-discovery-doesnt-work/90359/1 "2017-06-21T20:38:04Z")

</div>

I am using the official elasticseach ansible role to setup 2 master nodes with the following configuration....

```auto
  - role: elasticsearch
      es_config: {
        discovery.zen.hosts_provider: ec2,
        cloud.aws.region: us-west-2,
        discovery.ec2.tag.APPLICATIONROLE: "{{env|upper}}_ELASTICSEARCH_NODE_MASTER",
        discovery.ec2.tag.APPLICATIONENV: "{{env|upper}}",
        http.port: 9200,
        transport.tcp.port: 9300,
        node.data: false,
        node.master: true
      }
      es_plugins:
        - plugin: discovery-ec2
      es_plugins_reinstall: true
      es_major_version: "5.x"
      es_version: "5.4.2"
      es_cluster_name: "{{env}}_elasticsearch"
      es_instance_name: "{{inventory_hostname}}"

```

AWS discovery doesn't work although the service has started and running. I don't see anything related to AWS in the logs. It loads the discover\_ec2 plugin as per the logs then uses discovery type [zen]. Logs are clean mostly but I don't see any AWS related info in those logs. Any help would be greatly appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 19, 2017, 8:38pm UTC](https://discuss.elastic.co/t/aws-discovery-doesnt-work/90359/2 "2017-07-19T20:38:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
