Skip to content

v0.26.1

Compare
Choose a tag to compare
@cloudpossebot cloudpossebot released this 19 May 11:57
697f8f5

馃殌 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

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
        }
    }