Skip to content

Commit 957f697

Browse files
committed
Revert previous changes to range_key/LSI
1 parent d64aac8 commit 957f697

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

infrastructure/terraform/components/api/ddb_table_letter_queue.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ resource "aws_dynamodb_table" "letter_queue" {
33
billing_mode = "PAY_PER_REQUEST"
44

55
hash_key = "supplierId"
6-
range_key = "queueTimestamp"
6+
range_key = "letterId"
77

88
ttl {
99
attribute_name = "ttl"
1010
enabled = true
1111
}
1212

1313
local_secondary_index {
14-
name = "letterId-index"
15-
range_key = "letterId"
14+
name = "queueTimestamp-index"
15+
range_key = "queueTimestamp"
1616
projection_type = "ALL"
1717
}
1818

0 commit comments

Comments
 (0)