Skip to content

Commit

Permalink
[PRMT-4252-DYNAMODB] Run a terraform fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-nhs committed Dec 1, 2023
1 parent 509cdff commit 3ead3b2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions terraform/dynamodb.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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 {
Expand Down Expand Up @@ -29,14 +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 3ead3b2

Please sign in to comment.