Page MenuHomePhabricator

D10153.diff
No OneTemporary

D10153.diff

diff --git a/services/terraform/modules/shared/dynamodb.tf b/services/terraform/modules/shared/dynamodb.tf
--- a/services/terraform/modules/shared/dynamodb.tf
+++ b/services/terraform/modules/shared/dynamodb.tf
@@ -139,6 +139,37 @@
}
}
+resource "aws_dynamodb_table" "identity-devices" {
+ name = "identity-devices"
+ hash_key = "userID"
+ range_key = "itemID"
+ billing_mode = "PAY_PER_REQUEST"
+
+ attribute {
+ name = "userID"
+ type = "S"
+ }
+
+ # this is either device ID or device list datetime
+ attribute {
+ name = "itemID"
+ type = "S"
+ }
+
+ # only for sorting device lists
+ attribute {
+ name = "timestamp"
+ type = "N"
+ }
+
+ # sparse index allowing to sort device list updates by timestamp
+ local_secondary_index {
+ name = "deviceList-timestamp-index"
+ range_key = "timestamp"
+ projection_type = "ALL"
+ }
+}
+
# Identity users with opaque_ke 2.0 credentials
resource "aws_dynamodb_table" "identity-users-opaque2" {
# This table doesnt exist in prod

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 4, 1:47 AM (5 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2610117
Default Alt Text
D10153.diff (1 KB)

Event Timeline