-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to connect with amazon ES service #337
Comments
There are two ways of passing arguments to the internal Elasticsearch client:
|
I think the issue is that you need a lot of special headers (which change throughout the session?) to use Amazon's authentication service -- ideally there would be some way to get Elasticsearch to connect via Amazon's SDK. |
As commented here, the only real option is to allow the |
You can pass arbitrary arguments to the Elasticsearch client's constructor You should be able to accomplish what was described on elasticsearch-py's On Sat, Oct 31, 2015 at 11:07 PM, Valentin Crettaz <notifications@github.com
|
Hi @llvtt -- as far as I can tell, mongo-connector only allows passing arbitrary primitives as arguments. As you can see in @consulthys' link (elastic/elasticsearch-py#280 (comment)) to support AWS we need to a) import a new package and b) pass elasticsearch a reference to an instance of a class from that package. Am I missing something? |
@yodaiken You're totally right; this doesn't look currently possible with mongo-connector. This could be included in a future Elastic DocManager if there's enough interest in having this, but right now I'd like to keep mongo-connector itself as lean as possible and encourage others to write their own DocManagers as plugins, rather than adding the kitchen sink to the project. Adding and setting up Let me know if you need any further help working on this. |
elastic_doc_manager.py: The factory method has been extracted to allow derived classes to override Elasticsearch client instantiation. amazon_elastic_doc_manager.py: The draft implementation has been introduced.
setup.py: The "requests-aws4auth" package has been added as a dependency.
Hello, @llvtt!
This sounds reasonable. Please consider extracting the existing «built-in» document managers from the Mongo Connector as separate plugins. A plugin — an extension of a system, not «a system itself». Best regards, |
setup.py: The "requests-aws4auth" package has been updated to the 0.8 version. The details can be found here: * tedder/requests-aws4auth#10. * tedder/requests-aws4auth#3.
I'm closing this for now, but feel free to file a new issue or re-open if you like. We're currently working on pulling out the Elastic doc manager into a separate package (to handle supporting both 1.x and 2.x) so it may be easier to extend the elastic search doc managers in the future. Thank you! |
Hi—
I'm trying to use mongo-connector with Amazon's new hosted Elasticsearch (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/what-is-amazon-elasticsearch-service.html).
I believe that it's not using normal Elasticsearch Shield etc, but rather is using Amazon's rather complex authentication scheme.
Any tips for getting mongo-connector to work?
Best,
Aaron
The text was updated successfully, but these errors were encountered: