DynamoDB Logger setup guide - snowplow-archive/sauna GitHub Wiki
HOME > GUIDE FOR DEVOPS > SETTING UP SAUNA > LOGGERS > DYNAMODB LOGGER SETUP GUIDE
- 1. Overview
- 2. Compatibility
- 3. DynamoDB setup
- 4. Sauna setup
- 4.1 Avro Schema
- 4.2 Example
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
.
This logger was released in Sauna version 0.1.0.
You should create a database as described in Amazon documentation.
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
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": "..."
}
}
}