更新AWS Opensearch中的“Max clause count”属性,使用Terraform。

huangapple go评论69阅读模式
英文:

Update AWS opensearch "Max clause count" attribute via terraform

问题

I'm trying to update Opensearch "Max clause count" via terraform, but I didn't find a terraform resource that contains this attribute.

更新AWS Opensearch中的“Max clause count”属性,使用Terraform。

That's the code of my resource:

resource "aws_elasticsearch_domain" "discovery" {
  domain_name           = var.region == "us-east-1" ? "${var.namespace}-${var.service}-${var.env}-domain" : "${var.service}-${var.env}-${var.region_prefix}-domain"
  elasticsearch_version = "OpenSearch_1.3"

  cluster_config {
    instance_type            = "c6g.2xlarge.elasticsearch"
    instance_count           = 6
    dedicated_master_count   = 3
    dedicated_master_enabled = true
    dedicated_master_type    = "m6g.xlarge.elasticsearch"
    zone_awareness_enabled   = true
    zone_awareness_config {
      availability_zone_count = 2
    }
  }

Can someone assist?

英文:

I'm trying to update Opensearch "Max clause count" via terraform, but I didn't find a terraform resource that contains this attribute.

更新AWS Opensearch中的“Max clause count”属性,使用Terraform。

That's the code of my resource:

resource "aws_elasticsearch_domain" "discovery" {
  domain_name           = var.region == "us-east-1" ? "${var.namespace}-${var.service}-${var.env}-domain" : "${var.service}-${var.env}-${var.region_prefix}-domain"
  elasticsearch_version = "OpenSearch_1.3"

  cluster_config {
    instance_type            = "c6g.2xlarge.elasticsearch"
    instance_count           = 6
    dedicated_master_count   = 3
    dedicated_master_enabled = true
    dedicated_master_type    = "m6g.xlarge.elasticsearch"
    zone_awareness_enabled   = true
    zone_awareness_config {
      availability_zone_count = 2
    }
  }

Can someone assist?

答案1

得分: 2

你需要使用advanced_options来进行设置,就像AWS文档中所解释的那样。

另外,如果你已经有一个包含这些选项的现有域,你可以使用AWS CLI的describe-domain来检查AdvancedOptions的具体定义方式。

英文:

You have to set them using advanced_options as explained in the AWS docs.

Also, if you have an existing domain with those options, you can use AWS CLI's describe-domain to check how exactly AdvancedOptions are defined.

huangapple
  • 本文由 发表于 2023年3月7日 02:45:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/75654671.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定