-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for DynamoDB TTL #12530
Comments
Yeah, I'd use this too. I guess we'd add a time_to_live_attribute string which names the attribute to use for this? And would we want to have every Read call invoke DescribeTimeToLive even if time_to_live_attribute isn't set, in order to turn it off if it's there? |
+1 |
2 similar comments
+1 |
+1 |
Hi @danthegoodman! Thanks for this feature request. @glasser, your characterization of the implementation approach feels right to me. Based on a quick skim of the API docs for this, I think the right mapping would be a new ttl {
attribute_name = "foo"
enabled = true
} As @glasser noted, it would be important to call The Terraform team isn't likely to work on this in the near future, but if someone had the time and motivation to write a pull request for it we'd be happy to review it. |
+1 |
2 similar comments
+1 |
+1 |
Merged and released in |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
AWS recently announced the ability to set a TTL on items in a DynamoDB. It requires an additional property to be set for the dynamo table, which I'd like to control via Terraform.
Affected Resource(s)
aws_dynamodb_table
References
https://aws.amazon.com/about-aws/whats-new/2017/02/amazon-dynamodb-now-supports-automatic-item-expiration-with-time-to-live-ttl/
The text was updated successfully, but these errors were encountered: