diff --git a/README.md b/README.md index f1311e7..f02acd9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ + ## Requirements | Name | Version | @@ -88,6 +89,7 @@ | [master\_user\_arn](#input\_master\_user\_arn) | The ARN for the master user of the cluster. If not specified, then it defaults to using the IAM user that is making the request. | `string` | `""` | no | | [master\_user\_name](#input\_master\_user\_name) | Main user's username, which is stored in the Amazon OpenSearch Service domain's internal database | `string` | `""` | no | | [master\_user\_password](#input\_master\_user\_password) | Main user's password, which is stored in the Amazon OpenSearch Service domain's internal database | `string` | `""` | no | +| [multi\_az\_with\_standby\_enabled](#input\_multi\_az\_with\_standby\_enabled) | Indicates whether multi-AZ with standy is enabled for the cluster. | `bool` | `false` | no | | [node\_to\_node\_encryption\_enabled](#input\_node\_to\_node\_encryption\_enabled) | Enable node-to-node encryption. | `bool` | `true` | no | | [off\_peak\_window\_options](#input\_off\_peak\_window\_options) | Configuration for off peak window | `map(any)` |
{| no | | [ok\_actions](#input\_ok\_actions) | The list of actions to execute when this alarm transitions into an OK state from any other state | `list(string)` | `[]` | no | @@ -122,3 +124,4 @@ | [vpc\_endpoint\_dns\_names](#output\_vpc\_endpoint\_dns\_names) | VPC endpoint DNS names | | [vpc\_endpoint\_endpoint](#output\_vpc\_endpoint\_endpoint) | The connection endpoint ID for connecting to the domain | | [vpc\_endpoint\_id](#output\_vpc\_endpoint\_id) | The unique identifier of the endpoint | + \ No newline at end of file diff --git a/main.tf b/main.tf index e9e6057..66d72db 100644 --- a/main.tf +++ b/main.tf @@ -23,9 +23,10 @@ resource "aws_opensearch_domain" "this" { instance_count = var.instance_count instance_type = var.instance_type - warm_enabled = var.warm_instance_enabled - warm_count = var.warm_instance_enabled ? var.warm_instance_count : null - warm_type = var.warm_instance_enabled ? var.warm_instance_type : null + warm_enabled = var.warm_instance_enabled + warm_count = var.warm_instance_enabled ? var.warm_instance_count : null + warm_type = var.warm_instance_enabled ? var.warm_instance_type : null + multi_az_with_standby_enabled = var.multi_az_with_standby_enabled dynamic "node_options" { for_each = var.coordinator_instance_enabled ? [1] : [] diff --git a/variables.tf b/variables.tf index 72dc6bd..576131c 100644 --- a/variables.tf +++ b/variables.tf @@ -466,3 +466,9 @@ variable "disabled_alarms" { type = list(string) default = [] } + +variable "multi_az_with_standby_enabled" { + description = "Indicates whether multi-AZ with standy is enabled for the cluster." + type = bool + default = false +}
"hours": 14,
"minutes": 0
}