loopbackio / loopback-connector-elastic-search

Strongloop Loopback connector for Elasticsearch
MIT License
79 stars 55 forks source link

Amazon AWS check for existing indices throws forbidden #63

Open ernie58 opened 7 years ago

ernie58 commented 7 years ago

This line sets a body on the request with method HEAD, which is forbidden on Amazon AWS ES

https://github.com/strongloop-community/loopback-connector-elastic-search/blob/ca47fc6cd01f2c1be610aac0a33f61d81f61681e/lib/setupIndex.js#L38

Isn't it enough to just provide the indexName like this:

return self.db.indices.exists({index: indexName})
ernie58 commented 7 years ago

Anyone?

pulkitsinghal commented 7 years ago

@ernie58 - Hey boss! thanks for reporting this, sorry that I missed it until today, so ... thanks again for the re-ping! Will work on this on the weekend.

ernie58 commented 7 years ago

You want me to make a PR?

pulkitsinghal commented 7 years ago

You want me to make a PR?

@ernie58 - yes that would be super.

aquid commented 6 years ago

@ernie58 Any updates on this?