Closed
Description
Describe the bug
I've tried to create an index with the parameter number_of_replicas=0
, but in an elasticsearch instance, I've got an index with number_of_replicas=1
.
To Reproduce
Steps to reproduce the behavior:
- Define index in a terraform code:
resource "elasticstack_elasticsearch_index" "example" {
name = "example"
number_of_shards = 1
number_of_replicas = 0
}
- Run the terraform plan & terraform plan commands
- Check index settings and make sure index.number_of_replicas = 1.
Expected behavior
The created index should have index.number_of_replicas = 0
instead of index.number_of_replicas = 0
Versions (please complete the following information):
- OS: macOS
- Terraform Version: v1.1.7
- Provider version: 0.5.0
- Elasticsearch Version: 8.3.2