Skip to content

Commit

Permalink
fix(chatbot): terraform syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
batdevis committed Oct 10, 2024
1 parent ea7d3db commit 28695e3
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions apps/infrastructure/src/modules/chatbot/dynamodb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}

0 comments on commit 28695e3

Please sign in to comment.