Getting AWS credentials from keystore for discovery-ec2 plugin?

I see. Sadly the documentation has not been updated yet. It needs to be:

  • discovery.ec2.access_key
  • discovery.ec2.secret_key

cloud.aws.region should not be used anymore but discovery.ec2.endpoint needs to be set in elasticsearch.yml file.

See https://github.com/elastic/elasticsearch/blob/5.4/plugins/discovery-ec2/src/main/java/org/elasticsearch/discovery/ec2/AwsEc2Service.java#L181-L188

I hope this helps.

cc @rjernst in case I'm saying something wrong :slight_smile: