Skip to content

Commit

Permalink
fixed ttl definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Bakhmetev committed Sep 16, 2024
1 parent 32ed41c commit 614e1c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tf-aws-dynamodb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ resource "aws_dynamodb_table" "default" {

ttl {
enabled = var.ttl_attribute != "" ? var.ttl_enabled : false
attribute_name = var.ttl_attribute
attribute_name = var.ttl_attribute != "" && var.ttl_enabled ? var.ttl_attribute : null
}

tags = module.name.tags
}

0 comments on commit 614e1c3

Please sign in to comment.