From 28695e37142d3902498412141c8be1aea1edbc8c Mon Sep 17 00:00:00 2001 From: Devis Battisti Date: Thu, 10 Oct 2024 11:34:56 +0200 Subject: [PATCH] fix(chatbot): terraform syntax --- .../src/modules/chatbot/dynamodb.tf | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/infrastructure/src/modules/chatbot/dynamodb.tf b/apps/infrastructure/src/modules/chatbot/dynamodb.tf index d13542a701..350dbc95a6 100644 --- a/apps/infrastructure/src/modules/chatbot/dynamodb.tf +++ b/apps/infrastructure/src/modules/chatbot/dynamodb.tf @@ -48,12 +48,14 @@ module "dynamodb_chatbot_sessions" { ] # GSI for query on created_at - global_secondary_index { - name = "SessionsByCreatedAtIndex" - hash_key = "userId" - range_key = "createdAt" - read_capacity = 5 - write_capacity = 5 - projection_type = "ALL" - } + global_secondary_indexes = [ + { + name = "SessionsByCreatedAtIndex" + hash_key = "userId" + range_key = "createdAt" + read_capacity = 5 + write_capacity = 5 + projection_type = "ALL" + } + ] }