# 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](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/configuring-the-jssdk.html) for more information about the AWS SDK configuration.&#x20;

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

```typescript
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',
})
```
