Opendistro discovery-ec2 plugin

Hello all,
I am attempting to migrate an ES cluster and Kibana to opendistro.
However, since the cluster dynamically autoscales I require the use of the discovery-ec2 plugin to register new nodes to the cluster.

while installing the plugin i get the following warning:
/usr/share/elasticsearch/bin/elasticsearch-plugin install discovery-ec2 --batch
→ Installing discovery-ec2
→ Downloading discovery-ec2 from elastic
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

  • java.lang.RuntimePermission accessDeclaredMembers
  • java.lang.RuntimePermission getClassLoader
  • java.lang.reflect.ReflectPermission suppressAccessChecks
  • java.net.SocketPermission * connect,resolve
    See Permissions in the JDK
    for descriptions of what these permissions allow and the associated risks.
    → Installed discovery-ec2

But, the install seems to be ok,

The trouble is, when I update elasticsearch.yml to include:
“network.host: ec2

the “systemctl restart elasticsearch.service” fails

the “journalctl -xe -o json-pretty” gives the following reason:

{
“__CURSOR” : “s=91141d57391c4c1e85c349c68a0d6722;i=1682e;b=9fa9616c2fa242f6869b1c02480836b9;m=fb23aa763;t=5a8569de70aa5;x=b52bf79f1cbc682b”,
“__REALTIME_TIMESTAMP” : “1592464853371557”,
“__MONOTONIC_TIMESTAMP” : “67414697827”,
“_BOOT_ID” : “9fa9616c2fa242f6869b1c02480836b9”,
“PRIORITY” : “6”,
“_SYSTEMD_SLICE” : “system.slice”,
“SYSLOG_FACILITY” : “3”,
“_TRANSPORT” : “stdout”,
“_MACHINE_ID” : “ec239da046efe33c7665d4508a7d0a61”,
“_EXE” : “/usr/bin/bash”,
“_CAP_EFFECTIVE” : “0”,
“_HOSTNAME” : “ip-1-1-1-1.ec2.internal”,
“SYSLOG_IDENTIFIER” : “performance-analyzer-agent-cli”,
“_UID” : “996”,
“_GID” : “994”,
“_COMM” : “performance-ana”,
“_CMDLINE” : “/bin/sh /usr/share/elasticsearch/bin/performance-analyzer-agent-cli”,
“_SYSTEMD_CGROUP” : “/system.slice/opendistro-performance-analyzer.service”,
“_SYSTEMD_UNIT” : “opendistro-performance-analyzer.service”,
“_STREAM_ID” : “1c95e17445ba408cabac162091960d97”,
“_PID” : “9487”,
“MESSAGE” : “07:20:53.371 [Thread-1] ERROR com.amazon.opendistro.elasticsearch.performanceanalyzer.reader.ClusterLevelMetricsReader - Skip parsing. Number of lines: 1.”
}

any ideas on how to make this work?