Skip to content

Commit

Permalink
feat: Default to not changing autoscaling schedule values at the sche…
Browse files Browse the repository at this point in the history
…duled time (#3322)

fix: aws_autoscaling_schedule values defaulting to 0
  • Loading branch information
Tom Ellis authored and GitHub committed Mar 29, 2025
1 parent dd2089b commit abf76f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/eks-managed-node-group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -697,9 +697,9 @@ resource "aws_autoscaling_schedule" "this" {
scheduled_action_name = each.key
autoscaling_group_name = aws_eks_node_group.this[0].resources[0].autoscaling_groups[0].name

min_size = try(each.value.min_size, null)
max_size = try(each.value.max_size, null)
desired_capacity = try(each.value.desired_size, null)
min_size = try(each.value.min_size, -1)
max_size = try(each.value.max_size, -1)
desired_capacity = try(each.value.desired_size, -1)
start_time = try(each.value.start_time, null)
end_time = try(each.value.end_time, null)
time_zone = try(each.value.time_zone, null)
Expand Down

0 comments on commit abf76f6

Please sign in to comment.