You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we can't delete virtual index from terraform.
It seems like the API issue, since it can't be deleted from the other clients too. algolia/algoliasearch-client-javascript#1377
We saw that the replica indices have to be unlinked from the primary index before atempting to delete them.
Still we were not able to do this "manually" by reapplying the primary without the replica to delete and then atempting to delete the replica. Even worse, when deleting indices that are linked to replicas, instead of becomming independend indices, the replicas drop into an orphaned state, where it is impossible to delete them (as they still count as replica) but also impossible to unlink (as the primary is gone). We needed to relink the replicas to a primary and then unlink using a different method than terraform.
Currently we can't delete virtual index from terraform.
It seems like the API issue, since it can't be deleted from the other clients too.
algolia/algoliasearch-client-javascript#1377
NOTE:
We are following the below steps to delete replica index.
https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/deleting-replicas/?client=go#using-the-api
Skipping some of the tests due to the issue.
https://github.com/k-yomo/terraform-provider-algolia/blob/main/internal/provider/resource_index_test.go#L87-L91
https://github.com/k-yomo/terraform-provider-algolia/blob/main/internal/provider/resource_virtual_index_test.go#L10-L14
Workaround would be deleting replica from console, and remove from the state with
terraform state rm
.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Replica index should be deleted when we delete a replica index resource.
Actual Behavior
We'll get the following error.
Steps to Reproduce
Deleting replica index resource.
Important Factoids
References
The text was updated successfully, but these errors were encountered: