Skip to content

Commit

Permalink
feat: Add support for auto software update (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
sindrig authored Feb 19, 2024
1 parent 245cdf2 commit f230f49
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ No modules.
| <a name="input_vpc"></a> [vpc](#input\_vpc) | VPC ID | `string` | `""` | no |
| <a name="input_create_default_sg"></a> [create_default_sg](#input\_create_default_sg) | Creates default security group if value is true | `bool` | `true` | no |
| <a name="input_zone_id"></a> [zone\_id](#input\_zone\_id) | Route 53 Zone id. | `string` | `""` | no |
| <a name="input_auto_software_update_enabled"></a> [auto\_software\_update\_enabled](#input\_auto\_software\_update\_enabled) | Whether automatic service software updates are enabled for the domain. Defaults to false. | `bool` | `false` | no |


## Outputs

Expand Down
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ resource "aws_opensearch_domain" "opensearch" {
}
}

software_update_options {
auto_software_update_enabled = var.auto_software_update_enabled
}

cluster_config {
instance_type = var.instance_type
dedicated_master_enabled = try(var.cluster_config["dedicated_master_enabled"], false)
Expand Down
7 changes: 7 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,10 @@ variable "off_peak_window_start_time" {
description = "Time for the 10h update window to begin. If you don't specify a window start time, AWS will default it to 10:00 P.M. local time."
default = null
}

variable "auto_software_update_enabled" {
type = bool

description = "Whether automatic service software updates are enabled for the domain. Defaults to false."
default = false
}

0 comments on commit f230f49

Please sign in to comment.