cognitect-labs/aws-api
https://github.com/cognitect-labs/aws-api
ローカルでSQS互換のElasticMQを使う
region は指定しないとエラーになるので、ローカルで試す場合も指定は必要
endpoint-override でローカルに向ける
code:sample.clj
(require 'cognitect.aws.client.api :as aws)
(def sqs
(aws/client
{:api :sqs
:region "ap-northeast-1"
:endpoint-override {:protocol :http
:hostname "localhost"
:port 9324
:path ""}}))
(aws/invoke sqs {:op :ListQueues})
(aws/invoke sqs {:op :CreateQueue :request {:QueueName "foo" :Attributes {:bar "baz"}}})
#clojure