英文:
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.
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.
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论