I just developed a very alpha level dynamodb persistence for my needs. I thought I would share it here if someone else is interested and in general I’m happy hear feedback regarding this.
For now only storing of values work, not sure if I have the time to develop the query part as far as I can see it should be quite straightforward.
Preview version of DynamoDB persistence addon for openhab. Currently supports only storing value (no querying).
Disclaimer: Please note that the Amazon services might cost you something. I take no responsibility what happens to your amazon account with this addon, please use with your own risk!
Sign up for Amazon AWS
Create user for openhab with IAM
2.a Services -> IAM -> Users -> Create new Users -> (User names: openhab, keep Generate an access key for each user checked) -> Create
2.b. Show User Security Credentials and store record the keys
Configure user policy to have access for dynamodb
3.a. Open Services -> IAM -> Policies
3.b. Check AmazonDynamoDBFullAccess and click Policy actions -> Attach
3.c. Check the user created in step 2 and click Attach policy
configure openhab using openhab.cfg:
dynamodb:accessKey=foo dynamodb:secretKey=bar dynamodb:region=eu-west-1
Finally, configure addon as other persistence addons using dynamodb.persist file.
The read & write capacity default to 1 for minimum costs. You can override them with
writeCapacityUnits configuration parameters.
The persistence plugin creates all the necessary dynamodb tables to store the items. Currently we have several tables, one for each item type (string, integer, date, and bigdecimal)