Adding support for calling AmazonSQSClient. without id/password to support authentication via IAM role.
From EC2 instance with IAM Role, we can now create client like this (create-client).
This commit is contained in:
parent
48c5f17ad5
commit
21ed5eb278
1 changed files with 6 additions and 1 deletions
|
|
@ -19,6 +19,11 @@
|
||||||
(defn create-client
|
(defn create-client
|
||||||
"Creates a synchronous AmazonSQSClient using the provided account id, secret key,
|
"Creates a synchronous AmazonSQSClient using the provided account id, secret key,
|
||||||
and optional com.amazonaws.ClientConfiguration."
|
and optional com.amazonaws.ClientConfiguration."
|
||||||
|
([]
|
||||||
|
(create-client (com.amazonaws.ClientConfiguration.)))
|
||||||
|
([client-config]
|
||||||
|
(AmazonSQSClient.
|
||||||
|
(.withUserAgent client-config "Bandalore - SQS for Clojure")))
|
||||||
([id secret-key]
|
([id secret-key]
|
||||||
(create-client id secret-key (com.amazonaws.ClientConfiguration.)))
|
(create-client id secret-key (com.amazonaws.ClientConfiguration.)))
|
||||||
([id secret-key client-config]
|
([id secret-key client-config]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue