Amazon DynamoDB

Amazon DynamoDB is a fast and flexible NoSQL database service.

IN DEVELOPMENT: The DynamoDB data store module is currently in development, and is not yet available.

Installation

Install the Amazon AWS package with the NuGet package manager or the Package Manager Console.

PM> Install-Package Redakt.Data.Aws

Register DynamoDB services in the ConfigureServices method in your project's Startup.cs file.

public void ConfigureServices(IServiceCollection services)
{
    // ... framework and other services here

    services.AddRedakt(this.Configuration, builder =>
    {
        builder.AddDynamoDbDataStore();
        // ... other Redakt services
    });
}

Configuration

The DynamoDB data store is configured through the appsettings.json file. Any configuration that is not included in the appsettings.json file will be set to its following default values.

{
    "Redakt": {
        "DataStore": {
            "AwsDynamoDB": {
                "AwsAccessKeyId": "",
                "AwsSecretAccessKey": "",
                "AwsRegion": "",
                "TableName": "Redakt"
            }
        }
    }
}

Access Key Id & Secret Access Key

Required. These settings are found in the AWS Console, and are used to connect to your DynamoDB instance. See here how to manage and retrieve access keys for IAM users.

The Amazon S3 file store and Amazon SNS/SQS service bus modules also require AWS access keys to be set. You can use the same or different access keys, depending on your needs.

Region

Required. Sets the region name for the datacenter that your DynamoDB database is hosted in. This must be one of the available Amazon region codes, e.g. eu-west-1.

Table Name

Required. Sets the DynamoDB table name.