Amazon S3

Amazon S3 is object storage built to store and retrieve any amount of data from anywhere. Redakt CMS can store its media files in Amazon S3. Redakt CMS offers S3 integration through an optional NuGet package.

Installation

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

PM> Install-Package Redakt.Data.Aws

Register Amazon S3 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.AddS3Storage();
        // ... other Redakt services
    });
}

Configuration

The Amazon S3 file 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": {
        "FileStore": {
            "AwsS3Storage": {
                "AwsAccessKeyId": "",
                "AwsSecretAccessKey": "",
                "AwsRegion": "",
                "BucketName": "redakt-media"
            }
        }
    }
}

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.

Bucket Name

Sets the name of the S3 bucket where files are stored. Defaults to "redakt-media" if not set.