From 15cd27413e0cfeab4d1ab423a447f1dee0000d7e Mon Sep 17 00:00:00 2001
From: nowakju <julien.nowak@arhs-spikeseed.com>
Date: Wed, 22 Mar 2023 14:50:04 +0100
Subject: [PATCH] Remove useless range key in ddb ingestion table

---
 modules/storage/dynamodb.tf | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/modules/storage/dynamodb.tf b/modules/storage/dynamodb.tf
index d760aee..dcf7c10 100644
--- a/modules/storage/dynamodb.tf
+++ b/modules/storage/dynamodb.tf
@@ -24,19 +24,13 @@ resource "aws_dynamodb_table" "ingestion_tasks" {
 
   billing_mode = "PAY_PER_REQUEST"
 
-  hash_key  = "resource_id"
-  range_key = "resource_type"
+  hash_key = "resource_id"
 
   attribute {
     name = "resource_id"
     type = "S"
   }
 
-  attribute {
-    name = "resource_type"
-    type = "S"
-  }
-
   tags = var.tags
 }
 
-- 
GitLab