diff --git a/README.md b/README.md index 94a1ec2..1ff34de 100644 --- a/README.md +++ b/README.md @@ -238,6 +238,7 @@ Available targets: | [log\_publishing\_index\_enabled](#input\_log\_publishing\_index\_enabled) | Specifies whether log publishing option for INDEX\_SLOW\_LOGS is enabled or not | `bool` | `false` | no | | [log\_publishing\_search\_cloudwatch\_log\_group\_arn](#input\_log\_publishing\_search\_cloudwatch\_log\_group\_arn) | ARN of the CloudWatch log group to which log for SEARCH\_SLOW\_LOGS needs to be published | `string` | `""` | no | | [log\_publishing\_search\_enabled](#input\_log\_publishing\_search\_enabled) | Specifies whether log publishing option for SEARCH\_SLOW\_LOGS is enabled or not | `bool` | `false` | no | +| [multi\_az\_with\_standby\_enabled](#multi\_az\_with\_standby\_enabled) | Enable domain with standby for OpenSearch cluster | `bool` | `false` | no | | [name](#input\_name) | ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'.
This is the only ID element not also included as a `tag`.
The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. | `string` | `null` | no | | [namespace](#input\_namespace) | ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique | `string` | `null` | no | | [node\_to\_node\_encryption\_enabled](#input\_node\_to\_node\_encryption\_enabled) | Whether to enable node-to-node encryption | `bool` | `false` | no | diff --git a/docs/terraform.md b/docs/terraform.md index 57ea59c..60da38f 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -113,6 +113,7 @@ | [log\_publishing\_index\_enabled](#input\_log\_publishing\_index\_enabled) | Specifies whether log publishing option for INDEX\_SLOW\_LOGS is enabled or not | `bool` | `false` | no | | [log\_publishing\_search\_cloudwatch\_log\_group\_arn](#input\_log\_publishing\_search\_cloudwatch\_log\_group\_arn) | ARN of the CloudWatch log group to which log for SEARCH\_SLOW\_LOGS needs to be published | `string` | `""` | no | | [log\_publishing\_search\_enabled](#input\_log\_publishing\_search\_enabled) | Specifies whether log publishing option for SEARCH\_SLOW\_LOGS is enabled or not | `bool` | `false` | no | +| [multi\_az\_with\_standby\_enabled](#multi\_az\_with\_standby\_enabled) | Enable domain with standby for OpenSearch cluster | `bool` | `false` | no | | [name](#input\_name) | ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'.
This is the only ID element not also included as a `tag`.
The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. | `string` | `null` | no | | [namespace](#input\_namespace) | ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique | `string` | `null` | no | | [node\_to\_node\_encryption\_enabled](#input\_node\_to\_node\_encryption\_enabled) | Whether to enable node-to-node encryption | `bool` | `false` | no | diff --git a/opensearch_domain.tf b/opensearch_domain.tf index ec4daa7..15cdcdd 100644 --- a/opensearch_domain.tf +++ b/opensearch_domain.tf @@ -46,15 +46,16 @@ resource "aws_opensearch_domain" "default" { } cluster_config { - instance_count = var.instance_count - instance_type = var.instance_type - dedicated_master_enabled = var.dedicated_master_enabled - dedicated_master_count = var.dedicated_master_count - dedicated_master_type = var.dedicated_master_type - zone_awareness_enabled = var.zone_awareness_enabled - warm_enabled = var.warm_enabled - warm_count = var.warm_enabled ? var.warm_count : null - warm_type = var.warm_enabled ? var.warm_type : null + instance_count = var.instance_count + instance_type = var.instance_type + dedicated_master_enabled = var.dedicated_master_enabled + dedicated_master_count = var.dedicated_master_count + dedicated_master_type = var.dedicated_master_type + multi_az_with_standby_enabled = var.multi_az_with_standby_enabled + zone_awareness_enabled = var.zone_awareness_enabled + warm_enabled = var.warm_enabled + warm_count = var.warm_enabled ? var.warm_count : null + warm_type = var.warm_enabled ? var.warm_type : null dynamic "zone_awareness_config" { for_each = var.availability_zone_count > 1 && var.zone_awareness_enabled ? [true] : [] diff --git a/variables.tf b/variables.tf index 805bf70..7b0d0b5 100644 --- a/variables.tf +++ b/variables.tf @@ -141,6 +141,12 @@ variable "availability_zone_count" { } } +variable "multi_az_with_standby_enabled" { + type = bool + default = false + description = "Enable domain with standby for OpenSearch cluster" +} + variable "ebs_volume_size" { type = number description = "EBS volumes for data storage in GB" diff --git a/versions.tf b/versions.tf index 184c5eb..191ea63 100644 --- a/versions.tf +++ b/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 3.35.0" + version = ">= 5.15.0" } } }