Skip to content

OpenSearch: Model dedicated coordinator nodes as regular fields instead of nested block #42210

@pengw0048

Description

@pengw0048

Description

The ability to configure dedicated coordinator nodes has been added in the recent versions. However, it is not optimal to use a nested block for it, because when using Terraform to turn off dedicated coordinator nodes, it requires two steps:

  1. Set aws_opensearch_domain.node_options.node_config.enabled to false -> We need to apply this first so the toggle is off in AWS Console.
  2. Remove the node_options block -> Otherwise there is drift in the next Terraform plan + node_options { ... {node_config { enabled = false } } }

If we remove the node_options block in the first place, the provider does not disable dedicated coordinator nodes. Also, we already model dedicated master nodes as regular fields, and so this new option set is better if it follows the same convention.

Affected Resource(s) or Data Source(s)

  • aws_opensearch_domain

Potential Terraform Configuration

resource "aws_opensearch_domain" "my_domain" {
  ...
  dedicated_coordinator_enabled = true
  dedicated_coordinator_count = 3
  dedicated_coordinator_type = "..."
}

References

No response

Would you like to implement the enhancement?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequests to existing resources that expand the functionality or scope.service/opensearchIssues and PRs that pertain to the opensearch service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions