We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4f4ed1 commit c1d649bCopy full SHA for c1d649b
terraform/dynamodb.tf
@@ -68,6 +68,11 @@ resource "aws_dynamodb_table" "delta-dynamodb-table" {
68
type = "S"
69
}
70
71
+ attribute {
72
+ name = "ImmsID"
73
+ type = "S"
74
+ }
75
+
76
attribute {
77
name = "Operation"
78
@@ -102,6 +107,12 @@ resource "aws_dynamodb_table" "delta-dynamodb-table" {
102
107
projection_type = "ALL"
103
108
104
109
110
+ global_secondary_index {
111
+ name = "ImmunisationIdIndex"
112
+ hash_key = "ImmsID"
113
+ projection_type = "ALL"
114
115
105
116
point_in_time_recovery {
106
117
enabled = var.environment == "prod"
118
0 commit comments