Page MenuHomePhabricator

D5657.diff
No OneTemporary

D5657.diff

diff --git a/services/terraform/dynamodb-test.tf b/services/terraform/dynamodb-test.tf
--- a/services/terraform/dynamodb-test.tf
+++ b/services/terraform/dynamodb-test.tf
@@ -97,10 +97,23 @@
type = "S"
}
+ attribute {
+ name = "DeviceID"
+ type = "S"
+ }
+
ttl {
attribute_name = "Expire"
enabled = true
}
+
+ global_secondary_index {
+ name = "DeviceID-index"
+ hash_key = "DeviceID"
+ write_capacity = 10
+ read_capacity = 10
+ projection_type = "ALL"
+ }
}
resource "aws_dynamodb_table" "tunnelbroker-verification-messages-test" {
diff --git a/services/terraform/dynamodb.tf b/services/terraform/dynamodb.tf
--- a/services/terraform/dynamodb.tf
+++ b/services/terraform/dynamodb.tf
@@ -97,10 +97,23 @@
type = "S"
}
+ attribute {
+ name = "DeviceID"
+ type = "S"
+ }
+
ttl {
attribute_name = "Expire"
enabled = true
}
+
+ global_secondary_index {
+ name = "DeviceID-index"
+ hash_key = "DeviceID"
+ write_capacity = 10
+ read_capacity = 10
+ projection_type = "ALL"
+ }
}
resource "aws_dynamodb_table" "tunnelbroker-verification-messages" {

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 3:36 AM (20 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2582364
Default Alt Text
D5657.diff (1 KB)

Event Timeline