Skip to content

Commit d2f49ee

Browse files
authored
add support for multi-az with standby (#63)
1 parent e60e634 commit d2f49ee

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- BEGIN_TF_DOCS -->
12
## Requirements
23

34
| Name | Version |
@@ -88,6 +89,7 @@
8889
| <a name="input_master_user_arn"></a> [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 |
8990
| <a name="input_master_user_name"></a> [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 |
9091
| <a name="input_master_user_password"></a> [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 |
92+
| <a name="input_multi_az_with_standby_enabled"></a> [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 |
9193
| <a name="input_node_to_node_encryption_enabled"></a> [node\_to\_node\_encryption\_enabled](#input\_node\_to\_node\_encryption\_enabled) | Enable node-to-node encryption. | `bool` | `true` | no |
9294
| <a name="input_off_peak_window_options"></a> [off\_peak\_window\_options](#input\_off\_peak\_window\_options) | Configuration for off peak window | `map(any)` | <pre>{<br/> "hours": 14,<br/> "minutes": 0<br/>}</pre> | no |
9395
| <a name="input_ok_actions"></a> [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 @@
122124
| <a name="output_vpc_endpoint_dns_names"></a> [vpc\_endpoint\_dns\_names](#output\_vpc\_endpoint\_dns\_names) | VPC endpoint DNS names |
123125
| <a name="output_vpc_endpoint_endpoint"></a> [vpc\_endpoint\_endpoint](#output\_vpc\_endpoint\_endpoint) | The connection endpoint ID for connecting to the domain |
124126
| <a name="output_vpc_endpoint_id"></a> [vpc\_endpoint\_id](#output\_vpc\_endpoint\_id) | The unique identifier of the endpoint |
127+
<!-- END_TF_DOCS -->

main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ resource "aws_opensearch_domain" "this" {
2323
instance_count = var.instance_count
2424
instance_type = var.instance_type
2525

26-
warm_enabled = var.warm_instance_enabled
27-
warm_count = var.warm_instance_enabled ? var.warm_instance_count : null
28-
warm_type = var.warm_instance_enabled ? var.warm_instance_type : null
26+
warm_enabled = var.warm_instance_enabled
27+
warm_count = var.warm_instance_enabled ? var.warm_instance_count : null
28+
warm_type = var.warm_instance_enabled ? var.warm_instance_type : null
29+
multi_az_with_standby_enabled = var.multi_az_with_standby_enabled
2930

3031
dynamic "node_options" {
3132
for_each = var.coordinator_instance_enabled ? [1] : []

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,3 +466,9 @@ variable "disabled_alarms" {
466466
type = list(string)
467467
default = []
468468
}
469+
470+
variable "multi_az_with_standby_enabled" {
471+
description = "Indicates whether multi-AZ with standy is enabled for the cluster."
472+
type = bool
473+
default = false
474+
}

0 commit comments

Comments
 (0)