Skip to content

Commit

Permalink
PRMT-4252-DYNAMODB (#111)
Browse files Browse the repository at this point in the history
* [PRMT-4252-DYNAMODB] Added  `deletion_protection_enabled = true`, confirmed point_in_time_recovery is enabled.

* [PRMT-4252-DYNAMODB] Run a `terraform fmt`.
  • Loading branch information
martin-nhs authored Dec 1, 2023
1 parent 45f5edd commit 7abefb4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions terraform/dynamodb.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
resource "aws_dynamodb_table" "transfer_tracker" {
name = "${var.environment}-${var.component_name}-transfer-tracker"
billing_mode = "PAY_PER_REQUEST"
hash_key = "conversation_id"
name = "${var.environment}-${var.component_name}-transfer-tracker"
billing_mode = "PAY_PER_REQUEST"
hash_key = "conversation_id"
deletion_protection_enabled = true

server_side_encryption {
enabled = true
Expand All @@ -28,15 +29,14 @@ resource "aws_dynamodb_table" "transfer_tracker" {
}

global_secondary_index {
name = "NhsNumberSecondaryIndex"
hash_key = "nhs_number"
projection_type = "ALL"
name = "NhsNumberSecondaryIndex"
hash_key = "nhs_number"
projection_type = "ALL"
}

global_secondary_index {
name = "IsActiveSecondaryIndex"
hash_key = "is_active"
projection_type = "ALL"
name = "IsActiveSecondaryIndex"
hash_key = "is_active"
projection_type = "ALL"
}

}

0 comments on commit 7abefb4

Please sign in to comment.