AWS SDK Config

Configuration can be set directly through the AWS SDK. Just make sure it's done before instantiating a DynamoStore since a AWS. DynamoDB instance will be created which uses a snapshot of the config. Refer to the AWS documentation for more information about the AWS SDK configuration.

The snippet shows the configuration with Cognito Identity as auth provider without a Cognito User Pool.

import * as AWS from 'aws-sdk'

AWS.config.region = 'eu-central-1'
AWS.config.credentials = new AWS.CognitoIdentityCredentials({
    IdentityPoolId: 'eu-central-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
})

Last updated