Can't get EC2 discovery to work, always using zen


(Simon Fredsted) #1

Hi, I'm trying to use EC2 discovery with ES 6.1 and ES 6.2. It doesn't seem to work at all. I did of course install the plugin and add the neccessary config file, as well as adding the EC2 instance IAM role, but the log says it still uses "zen" discovery:

[2018-02-07T10:46:49,451][INFO ][o.e.p.PluginsService     ] [esnode01] loaded plugin [discovery-ec2]
[2018-02-07T10:46:52,316][INFO ][o.e.d.DiscoveryModule    ] [esnode01] using discovery type [zen]
[2018-02-07T10:46:53,032][INFO ][o.e.n.Node               ] [esnode01] initialized
[2018-02-07T10:46:53,041][INFO ][o.e.n.Node               ] [esnode01] starting ...

I've provided the config, EC2 IAM role and logs here: https://gist.github.com/fredsted/e37d60948d9f765eef615b21eebc6bfd


(Simon Fredsted) #2

It looks like I needed to set the ec2 endpoint in elasticsearch.yml, and now it seemingly works.

discovery.ec2.endpoint: ec2.eu-central-1.amazonaws.com

I wonder if there is a bug in the autodetection here?


(David Pilato) #3

There is a bug in the documentation.

See related:


(system) #4

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