Closed
Description
I'm trying to create a DAX client with dax.NewWithSession
using the same session I use for creating a dynamo client. I can confirm it works with dynamo.
Sample
sess, err := GetSession()
if err != nil {
return nil, err
}
if useDAX {
svc, err = dax.NewWithSession(sess)
} else {
svc = dynamodb.New(sess)
}
this is the error I have when calling dax.NewWithSession
InvalidParameter: custom handlers not supported
If you read the code from aws-dax-go
that error comes from client.ValidateHandlers
What should we do to create a new DAX client using our aws session
?
Env
github.com/aws/aws-dax-go v1.1.1
github.com/aws/aws-sdk-go v1.19.48
Metadata
Metadata
Assignees
Labels
No labels