We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d96779 commit b2e1091Copy full SHA for b2e1091
1 file changed
infrastructure/terraform/components/api/ddb_table_letter_queue.tf
@@ -0,0 +1,44 @@
1
+resource "aws_dynamodb_table" "letters" {
2
+ name = "${local.csi}-letter-queue"
3
+ billing_mode = "PAY_PER_REQUEST"
4
+
5
+ hash_key = "supplierId"
6
+ range_key = "letterId"
7
8
+ ttl {
9
+ attribute_name = "ttl"
10
+ enabled = true
11
+ }
12
13
+ local_secondary_index {
14
+ name = "timestamp-index"
15
+ range_key = "queueTimestamp"
16
+ projection_type = "ALL"
17
18
19
+ attribute {
20
+ name = "supplierId"
21
+ type = "S"
22
23
24
25
+ name = "letterId"
26
27
28
29
30
+ name = "queueTimestamp"
31
32
33
34
+ point_in_time_recovery {
35
36
37
38
+ tags = merge(
39
+ local.default_tags,
40
+ {
41
+ NHSE-Enable-Dynamo-Backup-Acct = "True"
42
43
+ )
44
+}
0 commit comments