Closed hajnej closed 2 months ago
I am Golang / Terraform providers developer newbie but a quick guess is that https://github.com/opensearch-project/terraform-provider-opensearch/blob/174c272a967fbb913abbe3e5baba4b677cc6666b/provider/resource_opensearch_cluster_settings.go#L63 should be moved into stringClusterSettings
@hajnej Your solution is working for me, do go ahead if you would like to contribute the same.
What is the bug?
terraform plan/apply
fails to plan whencluster_routing_allocation_enable
attribute is used in opensearch_cluster_settings resource.Initial apply ends successfully. Any subsequent
terraform plan
orterraform apply
fails with this error:How can one reproduce the bug?
Create OpenSearch cluster and try to apply this Terraform configuration
What is the expected behavior?
terraform plan
,terraform apply
succeeds.What is your host/environment?
OpenSearch cluster 2.11 deployed on
kind
Kubernetes Cluster via OpenSearch OperatorDo you have any screenshots?
Do you have any additional context?
curl -X GET https://opensearch.127.0.0.1.nip.io/_cluster/settings