Skip to content

Commit

Permalink
[Draft] Added Instance Maintenance Policy
Browse files Browse the repository at this point in the history
  • Loading branch information
simonzhekoff committed Dec 6, 2024
1 parent 5380ab0 commit 59e2827
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/graphdb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ resource "aws_autoscaling_group" "graphdb_auto_scaling_group" {

target_group_arns = var.graphdb_target_group_arns

instance_maintenance_policy {
min_healthy_percentage = var.instance_maintenance_policy_min_healthy_percentage
max_healthy_percentage = var.instance_maintenance_policy_min_healthy_percentage
}

launch_template {
id = aws_launch_template.graphdb.id
version = aws_launch_template.graphdb.latest_version
Expand Down
12 changes: 12 additions & 0 deletions modules/graphdb/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -394,3 +394,15 @@ variable "ebs_default_kms_key" {
description = "Define default KMS key"
type = string
}

variable "instance_maintenance_policy_min_healthy_percentage" {
description = "Define minimum healthy percentage for the Instance Maintenance Policy"
type = number
default = 100
}

variable "instance_maintenance_policy_max_healthy_percentage" {
description = "Define maximum healthy percentage for the Instance Maintenance Policy"
type = number
default = 200
}

0 comments on commit 59e2827

Please sign in to comment.