Setting different keys for EC2 Discovery & S3 Repository cloud-aws

Hi,
I'd like to use cloud-aws plugin for EC2 Discovery & S3 Repository.
I've got separate cloud accounts: first for Eucalyptus, second for S3.

cloud:
    aws:
        s3:
            access_key: AAAAAAAAAAAAAAAAAA
            secret_key: aAaAaaaaaaaaaaaaaaAaaaAaaAAAaaaaaaaaaaaaA
        ec2:
            access_key: BBBBBBBBBBBBBBBBBB
            secret_key: bbbbbbBbbbBbbbbbbBBbbbbBbbbBBBBbBbBBbb

When i try do sth like this I get:
[2016-07-14 15:28:17,690][INFO ][discovery.ec2 ] [Hideko Takata] Exception while retrieving instance list from AWS API: Unable to load AWS credentials from any provider in the chain

Is there any possibility to provide two access & secret keys?

Yes. This should work.

Can you tell which versions you are using?

{
  "name" : "Batroc the Leaper",
  "cluster_name" : "PLUM",
  "version" : {
    "number" : "2.3.2",
    "build_hash" : "b9e4a6acad4008027e4038f6abed7f7dba346f94",
    "build_timestamp" : "2016-04-21T16:03:47Z",
    "build_snapshot" : false,
    "lucene_version" : "5.5.0"
  },
  "tagline" : "You Know, for Search"
}

/_cat/plugins
Batroc the Leaper cloud-aws 2.3.2 j

Looks like a bug. Could you open an issue in Elasticsearch repo with all those details and link to this discussion?

Thanks for reporting!

I've created issue #19445.

Thanks!