Skip to content

Commit

Permalink
Added desired_capacity variable for ASG
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwolfaws committed Dec 10, 2024
1 parent 390da23 commit e48d01a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions horde-deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module "horde" {
instance_type = "c7a.8xlarge"
min_size = 2
max_size = 10
desired_capacity = 4
block_device_mappings = [
{
device_name = "/dev/sda1"
Expand Down
1 change: 1 addition & 0 deletions modules/unreal/horde/asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ resource "aws_autoscaling_group" "unreal_horde_agent_asg" {
vpc_zone_identifier = var.unreal_horde_service_subnets
min_size = var.agents[each.key].min_size
max_size = var.agents[each.key].max_size
desired_capacity = var.agents[each.key].desired_capacity

tag {
key = "Name"
Expand Down
1 change: 1 addition & 0 deletions modules/unreal/horde/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ variable "agents" {
)
min_size = optional(number, 0)
max_size = optional(number, 1)
desired_capacity = optional(number, 1)
}))
description = "Configures autoscaling groups to be used as build agents by Unreal Engine Horde."
default = {}
Expand Down

0 comments on commit e48d01a

Please sign in to comment.