-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdynamo_db_review.tf
More file actions
87 lines (81 loc) · 1.75 KB
/
dynamo_db_review.tf
File metadata and controls
87 lines (81 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
module "document_upload_review_dynamodb_table" {
source = "./modules/dynamo_db"
table_name = var.document_review_table_name
hash_key = "ID"
sort_key = "Version"
deletion_protection_enabled = local.is_production
ttl_enabled = false
point_in_time_recovery_enabled = !local.is_sandbox
attributes = [
{
name = "ID"
type = "S"
},
{
name = "Custodian"
type = "S"
},
{
name = "NhsNumber"
type = "S"
},
{
name = "ReviewStatus"
type = "S"
},
{
name = "Author"
type = "S"
},
{
name = "Reviewer"
type = "S"
},
{
name = "ReviewDate"
type = "N"
},
{
name = "UploadDate"
type = "N"
},
{
name = "Version"
type = "N"
}
]
global_secondary_indexes = [
{
name = "CustodianIndex"
hash_key = "Custodian"
range_key = "UploadDate"
projection_type = "ALL"
},
{
name = "AuthorIndex"
hash_key = "Author"
range_key = "UploadDate"
projection_type = "ALL"
},
{
name = "ReviewStatusIndex"
hash_key = "ReviewStatus"
range_key = "UploadDate"
projection_type = "ALL"
},
{
name = "ReviewerIndex"
hash_key = "Reviewer"
range_key = "ReviewDate"
projection_type = "ALL"
},
{
name = "NhsNumberIndex"
hash_key = "NhsNumber"
range_key = "UploadDate"
projection_type = "ALL"
}
]
environment = var.environment
owner = var.owner
}