-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add support for passing credentials #8
Comments
Hey @AlessioVallero the DAX library itself reuses the credentials from the passed in DDB client. So I would hope: const documentDaxClient = new AmazonDaxClient({
client: DynamoDBDocumentClient.from(new DynamoDBClient({
endpoint: process.env.dax,
region: 'us-east-2',
credentials: yourTempCreds
}))
}); Just works. With that being said I've not experimented with temporary credentials so if that does not work can you provide a small repro and I can then add support. |
Sure. What I believe is happening, when using temporary credentials, is that Hard to tell, but maybe the issue would be solved by decommenting this line? Here's a piece of the code I'm running:
|
Hi! Thanks for your work on making this library happening!
My application authenticates using temporary credentials from the credentials provider, which I use to pass to DynamoDB with no issue.
However, it seems that "credentials" or "providerCredentials" is actually not a config item accepted by the TypeScript definition of your library.
Is that something that you already support and just need to expose to the types?
The text was updated successfully, but these errors were encountered: