roribio/alpine-sqs

AWS Java Client point to local queue

fifarafa opened this issue · 0 comments

Could you please give some hint how to point aws java client to local queue?
I've tried something like this but apparently client can't find the queue.

AmazonSQSClientBuilder.standard()
                    .withEndpointConfiguration(
                            new AwsClientBuilder.EndpointConfiguration("http://localhost:9324/queue", "notSureWhatRegionPutHere"))
                    .build();

Any help would be appreciated. Thanks!

EDIT
The solution was to fix endpoint by removing queue name from it.
Below version seems to work:

AmazonSQSClientBuilder.standard()
                    .withEndpointConfiguration(
                            new AwsClientBuilder.EndpointConfiguration("http://localhost:9324", "localhost"))
                    .build();

Thanks