Fork me on GitHub
#aws
<
2022-04-10
>
wimomisterx01:04:46

Trying to get aws-api to work with https://github.com/p4tin/goaws but running into #:cognitect.anomalies{:category :cognitect.anomalies/unavailable, :message "Connection refused"} . Works fine when I use the aws cli to list topics. This is how I'm using it...

(def sns (aws/client {:api :sns
                      :endpoint-override {:protocol :http
                                          :host "localhost"
                                          :port 4100}
                      :credentials-provider (credentials/basic-credentials-provider
                                              {:access-key-id     "gimme"
                                               :secret-access-key "access"})}))

(aws/invoke sns-client {:op :ListTopics})
Has anyone been able to get aws-api to work with goaws or localstack?

lukasz16:04:29

What's the error that you're getting? We use aws-api with Minio and the configuration looks more or less the same as your SNS client

lukasz16:04:21

The only difference is that rather than :host our code has :hostname

lukasz16:04:29

in the :endpoint-override config

wimomisterx00:04:36

ah! that was it. Thanks @U0JEFEZH6 :thumbsup:

👍 1