Conductor with AWS SQS
At our company we are currently evaluating using conductor but we are unable to listen to SQS events.
-
We added contribs module to properties: conductor.additional.modules=com.netflix.conductor.contribs.ContribsModule
-
defined two environment variables: AWS_ACCESS_KEY_ID=... AWS_SECRET_KEY=...
Still not able to listen to queue. Are there any other steps we are missing?
any luck ?
Can you try by storing these in the ~/.aws/credentials as suggested by AWS? Does that work?
As @danca226 commented, we are trying to use Conductor in our project. In a POC we are working on, we successfully connected to SQS but the problem is it's not updating the wait task after receiving the message from the SQS. We are always getting "No such workflow found by id: " exception from QueueManager line 102 [es.getExecutionStatus(workflowId, true);]. Any help would be much appreciated. Is it possible to provide a working example of using SQS?
Hi, any update with this issue? I did the same configuration as @danca226 and when I start the server get the following error:
Exception in thread "main" com.google.inject.CreationException: Unable to create injector, see the following errors:
1) No implementation for com.amazonaws.auth.AWSCredentialsProvider was bound.
while locating com.amazonaws.auth.AWSCredentialsProvider
for the 2nd parameter of com.netflix.conductor.contribs.ContribsModule.getQueues(ContribsModule.java:76)
at com.netflix.conductor.contribs.ContribsModule.getQueues(ContribsModule.java:76) (via modules: com.netflix.conductor.server.ServerModule -> com.netflix.conductor.contribs.ContribsModule)
2) No implementation for com.amazonaws.auth.AWSCredentialsProvider was bound.
while locating com.amazonaws.auth.AWSCredentialsProvider
for the 1st parameter of com.netflix.conductor.contribs.ContribsModule.getSQSClient(ContribsModule.java:70)
at com.netflix.conductor.contribs.ContribsModule.getSQSClient(ContribsModule.java:70) (via modules: com.netflix.conductor.server.ServerModule -> com.netflix.conductor.contribs.ContribsModule)
3) No implementation for com.amazonaws.auth.AWSCredentialsProvider was bound.
at com.netflix.conductor.contribs.ContribsModule.getQueues(ContribsModule.java:76) (via modules: com.netflix.conductor.server.ServerModule -> com.netflix.conductor.contribs.ContribsModule)
4) No implementation for com.amazonaws.auth.AWSCredentialsProvider was bound.
at com.netflix.conductor.contribs.ContribsModule.getSQSClient(ContribsModule.java:70) (via modules: com.netflix.conductor.server.ServerModule -> com.netflix.conductor.contribs.ContribsModule)
4 errors
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:470)
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
at com.google.inject.Guice.createInjector(Guice.java:99)
at com.google.inject.Guice.createInjector(Guice.java:73)
at com.google.inject.Guice.createInjector(Guice.java:62)
at com.netflix.conductor.server.ConductorServer.start(ConductorServer.java:220)
at com.netflix.conductor.server.Main.main(Main.java:54)
10498 [Thread-1] INFO conductor.org.elasticsearch.node - [Necromantra] stopping ...
10511 [Thread-1] INFO conductor.org.elasticsearch.node - [Necromantra] stopped
10511 [Thread-1] INFO conductor.org.elasticsearch.node - [Necromantra] closing ...
10517 [Thread-1] INFO conductor.org.elasticsearch.node - [Necromantra] closed
How and where do you inject AWSCredentialsProvider? Can you just give syntax example?
@enydrueda inside CoreModule.java in the the configure() function do this bind(AWSCredentialsProvider.class).to(InstanceProfileCredentialsProvider.class); where InstanceProfileCredentialsProvider.class should be any of the implementations AWS provides and how you store creds/role on your system.
Closing this issue, as there is no activity for a while. Please feel free to open another issue if you still have questions.
Could we resolve this?
At our company we are currently evaluating using conductor but we are unable to listen to SQS events.
- We added contribs module to properties: conductor.additional.modules=com.netflix.conductor.contribs.ContribsModule
- defined two environment variables: AWS_ACCESS_KEY_ID=... AWS_SECRET_KEY=...
Still not able to listen to queue. Are there any other steps we are missing?
Try to see in default aws region that is us east
If you are on conductor version 3.x and above the above property does not work. set up
conductor.default-event-queue.type=sqs and
conductor.sqs-event-queue-processor.enabled=true in your properties.
Join us in our Slack Community to discuss more or if you have any questions.