Page MenuHomePhabricator

[terraform] Create table for devices
ClosedPublic

Authored by bartek on Dec 4 2023, 6:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 13, 3:52 PM
Unknown Object (File)
Wed, Mar 12, 8:20 AM
Unknown Object (File)
Wed, Feb 26, 9:45 AM
Unknown Object (File)
Feb 20 2025, 10:56 PM
Unknown Object (File)
Feb 2 2025, 1:20 PM
Unknown Object (File)
Jan 29 2025, 3:36 PM
Unknown Object (File)
Jan 28 2025, 5:44 PM
Unknown Object (File)
Jan 28 2025, 5:44 PM
Subscribers

Details

Summary

ENG-5116.
Created a table for devices and device lists as designed in the linked Linear task.

Also added a separate LSI (local secondary index) for device list timestamps, which improves performance of very frequent query: "Get all user's device list updates since given timestamp".

The itemID column is either device-${deviceID} or devicelist-${datetime}. The timestamp is a separate column present only for device-list items. It contains duplicated timestamp only for the sake of aforementioned LSI.

Test Plan

Initialized localstack and used aws-cli to ensure the table is created as expected.

awslocal dynamodb list-tables
awslocal dynamodb describe-table --table-name identity-devices

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable