OpenSearch/plugins/discovery-ec2
David Pilato e5d9f393f1 Fix ec2 discovery when used with IAM profiles.
Follow up for #21039.

We can revert the previous change and do that a bit smarter than it was.

Patch tested successfully manually on ec2 with 2 nodes with a configuration like:

```yml
discovery.type: ec2
network.host: ["_local_", "_site_", "_ec2_"]
cloud.aws.region: us-west-2
```

(cherry picked from commit fbbeded)

Backport of #21048 in master branch
2016-10-20 20:19:47 +02:00
..
config/discovery-ec2 Configure AWS SDK logging configuration 2016-09-03 06:41:07 -04:00
licenses Build: upgrade httpcore version to 4.4.5 2016-07-19 15:11:40 +02:00
src Fix ec2 discovery when used with IAM profiles. 2016-10-20 20:19:47 +02:00
build.gradle Configure AWS SDK logging configuration 2016-09-03 06:41:07 -04:00