DynamoDB Logger setup guide - snowplow-archive/sauna GitHub Wiki

HOME > GUIDE FOR DEVOPS > SETTING UP SAUNA > LOGGERS > DYNAMODB LOGGER SETUP GUIDE

Contents

Overview

This logger sends information about Sauna activity to a DynamoDB table.

A message to this logger is structured, i.e. it can only contain data conforming to a predefined scheme. For the moment, it has the following fields: uid, name, status, description and lastModified.

Compatibility

This logger was released in Sauna version 0.1.0.

DynamoDB setup

You should create a database as described in Amazon documentation.

Sauna setup

Avro Schema

The DynamoDB Logger must be configured using a self-describing Avro which validates against this Schema:

iglu:com.snowplowanalytics.sauna.loggers/AmazonDynamodbConfig/avro/1-0-0

Example

We can enable this logger by placing the following Avro configurations to the configuration directory (the config files must use .avro or .json extensions):

{
    "schema": "iglu:com.snowplowanalytics.sauna.loggers/AmazonDynamodbConfig/avro/1-0-0",

    "data": {
        "enabled": true,
        "id": "MyDynamodbLogger",
        "parameters": {
            "dynamodbTableName": "...",
            "dynamodbAwsRegion": "...",
            "dynamodbAwsAccessKeyId": "...",
            "dynamodbAwsSecretAccessKey": "..."
        }
    }
}
⚠️ **GitHub.com Fallback** ⚠️