-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Documentation for ignore_changes_global_secondary_index should warn that it will destroy the table #82
Comments
I don't see the benefit of adding anything additional here. The API documentation is clear, the provider documentation is clear, and the Terraform plan/apply output is quite clear - am I missing anything? |
Well, the documentation does feel it necessary to mention this:
So if the documentation warns about enabling or disabling autoscaling will cause your tables to be recreated, why the similar warning shouldn't be extended to the case where you use Then, the inputs section says just:
Not even a mention that there's a bit more to this, unlike with
Just my two cents, but the only way for average person to know this will happen is to try it and then see terraform plan suggesting to delete your production table. Could use some warning at the documentation level. |
Terraform, and modules like this, are just the implementation. Users need to know the services and their API behaviors regardless of the implementation. We're not going to duplicate the service and API docs here, we focus on documenting this specific implementation |
I created a PR with my proposed changes for the documentation - #83 |
This issue has been resolved in version 4.0.1 🎉 |
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. |
Is your request related to a problem? Please describe.
Documentation states that
However, it should maybe also warn you that trying to set this variable after the table is already created will cause the table to be recreated.
Describe the solution you'd like.
Mention this caveat and maybe offer a migration path in the documentation.
It seems that using
terraform state mv "module.dynamodb.aws_dynamodb_table.autoscaled[0]" "module.dynamodb.aws_dynamodb_table.autoscaled_gsi_ignore[0]"
before applying the change fromignore_changes_global_secondary_index = false -> true
will preserve the table without recreating it.The text was updated successfully, but these errors were encountered: