Page MenuHomePhabricator

D4647.id15022.diff
No OneTemporary

D4647.id15022.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, 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)

Event Timeline