Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential streams-dynamodb vs dynamodb signature issue #26

Closed
codeasone opened this issue Dec 13, 2018 · 2 comments
Closed

Potential streams-dynamodb vs dynamodb signature issue #26

codeasone opened this issue Dec 13, 2018 · 2 comments

Comments

@codeasone
Copy link

codeasone commented Dec 13, 2018

Example code that fails:

(comment
  (def ddbs-client (aws/client {:api :streams-dynamodb
                                :region :eu-west-1}))

  (aws/invoke ddbs-client {:op :DescribeStream
                           :request {:StreamArn example-arn}})
  ;; => {"__type" "com.amazon.coral.service#InvalidSignatureException",
  ;;     "message" "Credential should be scoped to correct service: 'dynamodb'. ",
  ;;     :cognitect.anomalies/category :cognitect.anomalies/incorrect}
  )

Environment:

{:deps {org.clojure/clojure                {:mvn/version "1.10.0-RC2"}
        org.clojure/core.async             {:mvn/version "0.4.490"}
        com.cognitect.aws/api              {:mvn/version "0.8.155"}
        com.cognitect.aws/endpoints        {:mvn/version "1.1.11.462"}
        com.cognitect.aws/kinesis          {:mvn/version "668.2.357.0"}
        com.cognitect.aws/dynamodb         {:mvn/version "675.2.365.0"}
        com.cognitect.aws/streams-dynamodb {:mvn/version "669.2.364.0"}}}

Note: I'm using credentials for default profile from my .aws/credentials which I have confirmed are working for other API usage e.g

(comment
  (def ddb-client (aws/client {:api :dynamodb
                               :region :eu-west-1}))

  (aws/invoke ddb-client {:op :DescribeTable
                          :request {:TableName :secret-table-name}})
  ;; Succeeds
  )
@dchelimsky
Copy link
Contributor

dchelimsky commented Dec 13, 2018

This is fixed, but not yet released (see CHANGES.md). I'll announce the release on the Clojure mailing list. I won't promise it today, but it should be in the next day or two.

@dchelimsky
Copy link
Contributor

Released in 0.8.158.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants