|
1 | 1 | resource "aws_dynamodb_table" "audit-table" { |
2 | | - name = "immunisation-batch-${local.resource_scope}-audit-table" |
3 | | - billing_mode = "PAY_PER_REQUEST" |
4 | | - hash_key = "message_id" |
| 2 | + name = "immunisation-batch-${local.resource_scope}-audit-table" |
| 3 | + billing_mode = "PAY_PER_REQUEST" |
| 4 | + hash_key = "message_id" |
| 5 | + deletion_protection_enabled = true |
5 | 6 |
|
6 | 7 | attribute { |
7 | 8 | name = "message_id" |
@@ -47,9 +48,10 @@ resource "aws_dynamodb_table" "audit-table" { |
47 | 48 | } |
48 | 49 |
|
49 | 50 | resource "aws_dynamodb_table" "delta-dynamodb-table" { |
50 | | - name = "imms-${local.resource_scope}-delta" |
51 | | - billing_mode = "PAY_PER_REQUEST" |
52 | | - hash_key = "PK" |
| 51 | + name = "imms-${local.resource_scope}-delta" |
| 52 | + billing_mode = "PAY_PER_REQUEST" |
| 53 | + hash_key = "PK" |
| 54 | + deletion_protection_enabled = true |
53 | 55 |
|
54 | 56 | attribute { |
55 | 57 | name = "PK" |
@@ -106,11 +108,12 @@ resource "aws_dynamodb_table" "delta-dynamodb-table" { |
106 | 108 | } |
107 | 109 |
|
108 | 110 | resource "aws_dynamodb_table" "events-dynamodb-table" { |
109 | | - name = "imms-${local.resource_scope}-imms-events" |
110 | | - billing_mode = "PAY_PER_REQUEST" |
111 | | - hash_key = "PK" |
112 | | - stream_enabled = true |
113 | | - stream_view_type = "NEW_IMAGE" |
| 111 | + name = "imms-${local.resource_scope}-imms-events" |
| 112 | + billing_mode = "PAY_PER_REQUEST" |
| 113 | + hash_key = "PK" |
| 114 | + stream_enabled = true |
| 115 | + stream_view_type = "NEW_IMAGE" |
| 116 | + deletion_protection_enabled = true |
114 | 117 |
|
115 | 118 | attribute { |
116 | 119 | name = "PK" |
|
0 commit comments