🚀 Enhancements
Add var.ttl_enabled to support disabling ttl @mwarkentin (#85)
what
- Add
var.ttl_enabled
to support explicitly disabling dynamodb ttl on a table
why
- Unable to disable an existing ttl configuration
references
- Closes #84
Example Plan
After setting ttl_enabled = false
w/ blank ttl_attribute
:
# module.ddb_transaction_event.aws_dynamodb_table.default[0] will be updated in-place
~ resource "aws_dynamodb_table" "default" {
arn = "arn:aws:dynamodb:us-east-1:***********:table/devmw-transactionEvent"
billing_mode = "PAY_PER_REQUEST"
hash_key = "transactionId"
id = "devmw-transactionEvent"
...
timeouts {}
~ ttl {
attribute_name = "Expires"
~ enabled = true -> false
}
}