Open Ak-sky opened 1 week ago
@Ak-sky re: But sometimes TF re-apply does work
^ Do you have an environment where the re-apply never works? I believe its just that the backend is not actually ready yet. And we need to wait longer. We could maybe add a readiness script to the module if thats the case. But if you are seeing examples where re-apply never works, then thats a different problem. Can you please confirm?
@Ak-sky re: But sometimes TF re-apply does work
^ Do you have an environment where the re-apply never works? I believe its just that the backend is not actually ready yet. And we need to wait longer. We could maybe add a readiness script to the module if thats the case. But if you are seeing examples where re-apply never works, then thats a different problem. Can you please confirm?
It does work on re-apply but what I have seen is ES instance status is active even then it was always failing.
@Ak-sky Active may not mean its ready to handle index creation. Perhaps there is readiness api we could hit? We could even reach out to ICD to see what they recommend, since it seems to definitely be that the instance just isn't ready yet
Basic example is failing everytime in ~eu-de~ all regions when
elasticsearch_index
andelasticsearch_cluster_settings
are getting created using below elasticsearch provider. https://github.com/terraform-ibm-modules/terraform-ibm-icd-elasticsearch/blob/0df97ee41fca1b08b9d8c077f75a403f51de944a/examples/basic/version.tf#L11Failing with below error
context deadline exceeded
Have tried to wait (sleep) for 60s, 120s, and so forth but it doesn't work. But sometimes TF re-apply does work.