github cloudposse/terraform-aws-dynamodb 0.26.1
v0.26.1

latest releases: v0.37.0, v0, 0.36.0...
3 years ago

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

Don't miss a new terraform-aws-dynamodb release

NewReleases is sending notifications on new releases.