Skip to content

Commit b20e2e1

Browse files
committed
Switch table indexes around
1 parent eaebcc6 commit b20e2e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

infrastructure/terraform/components/api/ddb_table_letter_queue.tf

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

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

88
ttl {
99
attribute_name = "ttl"
@@ -12,7 +12,7 @@ resource "aws_dynamodb_table" "letter-queue" {
1212

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

0 commit comments

Comments
 (0)