Page MenuHomePhabricator

D4647.id15066.diff
No OneTemporary

D4647.id15066.diff

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

Mime Type
text/plain
Expires
Sun, Nov 17, 2:23 PM (19 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2524197
Default Alt Text
D4647.id15066.diff (800 B)

Event Timeline