Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2838250
D4647.id15022.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
800 B
Referenced Files
None
Subscribers
None
D4647.id15022.diff
View Options
diff --git a/services/terraform/dynamodb.tf b/services/terraform/dynamodb.tf
--- a/services/terraform/dynamodb.tf
+++ b/services/terraform/dynamodb.tf
@@ -173,6 +173,32 @@
name = "userID"
type = "S"
}
+
+ attribute {
+ name = "username"
+ type = "S"
+ }
+
+ attribute {
+ name = "walletAddress"
+ type = "S"
+ }
+
+ global_secondary_index {
+ name = "username-index"
+ hash_key = "username"
+ write_capacity = 10
+ read_capacity = 10
+ projection_type = "KEYS_ONLY"
+ }
+
+ global_secondary_index {
+ name = "walletAddress-index"
+ hash_key = "walletAddress"
+ write_capacity = 10
+ read_capacity = 10
+ projection_type = "KEYS_ONLY"
+ }
}
resource "aws_dynamodb_table" "identity-tokens" {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 29, 9:26 PM (20 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2202736
Default Alt Text
D4647.id15022.diff (800 B)
Attached To
Mode
D4647: [services] add GSI to users table for identity service
Attached
Detach File
Event Timeline
Log In to Comment