-
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
provider/aws: Don't always update DynamoDB read/write capacity #5617
Comments
I am in a similar scenario. The ability to ignore capacity is much needed! |
At the end I solved the issue using |
Maybe I am doing it wrong, but the ignore_changes appears to only work for top level resource settings. It does not appear that I can do the same for a GSI setting which looks like "global_secondary_index.4003134.write_capacity" where "4003134" appears to be a dynamically created id. |
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. |
Hi guys!
First of all, thank you for your massive amount of work: Terraform is improving everyday.
I'm using Terraform to provision DynamoDB tables. Currently,
read_capacity
andwrite_capacity
are required arguments, so that you can specify default values for read and write initial capacity:The problem is that I'm using a tool called Dynamic DynamoDB in order to automatically adjust the provisioned capacities, depending on the actual consumed capacities. But when I want to plan or apply changes with Terraform, it always tries to update the capacities to the default values I have in
.tf
files. With the example above, it will always try to set read and write capacities to 1 (for the global secondary index too), even if Dynamic DynamoDB changed them because of a traffic increase.I would love to solve this issue by adding a new argument to
aws_dynamodb_table
resource: something likeupdate_capacities
(or maybe better two new ones,update_read_capacity
andupdate_write_capacity
): if set tofalse
, Terraform will not try to update capacities if the table has been already created. If the table is not present yet, Terraform will create it as always, setting the default capacities accordingly.What do you think guys? Do you have a better idea? How would you solve this issue without touching Terraform code?
The text was updated successfully, but these errors were encountered: