Skip to content

[Bug] Cannot create index with number_of_replicas=0 #238

Closed
@paivin-dn

Description

@paivin-dn

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:

  1. Define index in a terraform code:
resource "elasticstack_elasticsearch_index" "example" {
  name               = "example"
  number_of_shards   = 1
  number_of_replicas = 0
}
  1. Run the terraform plan & terraform plan commands
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions