-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: Unable to disable Dynamodb table TTL #39195
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
I'm having the same issue.
does not really turn off the changes if they are already active but the you run into the the validation issues that name cannot be set if the |
I was able to reproduce this problem immediately and I'm working on a fix. The time-consuming part is waiting for testing: I've added a test for the bug, but since AWS only allows disabling TTL after it's been enabled for an hour, the test takes an hour to run. 🕥 |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.75.1 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Terraform Core Version
1.6.5
AWS Provider Version
5.66.0
Affected Resource(s)
aws_dynamodb_table
Expected Behavior
I should be able to disable TTLs on my dynamo table in Terraform:
Actual Behavior
I get a provider validation error that i cannot have a name while ttl.enabled is false. If I try to remove the name, I get an error from the Dynamo API itself.
Relevant Error/Panic Output Snippet
and
Terraform Configuration Files
Steps to Reproduce
enabled=false
on line 20, produces first error listed in "Relevant error" section#attribute_name = "ttlK"
to get the second errorDebug Output
No response
Panic Output
No response
Important Factoids
I'm pretty sure this validation check is the issue:
https://github.com/hashicorp/terraform-provider-aws/blame/main/internal/service/dynamodb/table.go#L2471-L2475
With it, there is seemingly no way to disable TTLs via Terraform
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: