Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Bakhmetev committed Sep 16, 2024
1 parent 00b4b03 commit 32ed41c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
6 changes: 3 additions & 3 deletions tf-aws-dynamodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ module "dynamodb_table" {
project = "genai"
component = "db"
name = "logs_table"
hash_key = "HashKey"
range_key = "RangeKey"
table_name = "logs_table"
hash_key = "HashKey"
range_key = "RangeKey"
dynamodb_attributes = [
{
Expand Down
6 changes: 3 additions & 3 deletions tf-aws-dynamodb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ locals {
],
var.dynamodb_attributes
)
attributes_final = length(var.range_key) == 0 ? attributes : concat(
attributes_final = length(var.range_key) == 0 ? local.attributes : concat(
local.attributes,
[
{
name = var.range_key
type = var.range_key_type
}
],
attributes
]
)
}

Expand Down
10 changes: 0 additions & 10 deletions tf-aws-dynamodb/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ output "table_arn" {
description = "DynamoDB table ARN"
}

output "global_secondary_index_names" {
value = null_resource.global_secondary_index_names[*].triggers.name
description = "DynamoDB secondary index names"
}

output "local_secondary_index_names" {
value = null_resource.local_secondary_index_names[*].triggers.name
description = "DynamoDB local index names"
}

output "table_stream_arn" {
value = join("", aws_dynamodb_table.default[*].stream_arn)
description = "DynamoDB table stream ARN"
Expand Down

0 comments on commit 32ed41c

Please sign in to comment.