diff --git a/horde-deployment/main.tf b/horde-deployment/main.tf index eae9173..2bcb03a 100644 --- a/horde-deployment/main.tf +++ b/horde-deployment/main.tf @@ -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" diff --git a/modules/unreal/horde/asg.tf b/modules/unreal/horde/asg.tf index 67b6aba..b6d523b 100644 --- a/modules/unreal/horde/asg.tf +++ b/modules/unreal/horde/asg.tf @@ -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" diff --git a/modules/unreal/horde/variables.tf b/modules/unreal/horde/variables.tf index 1b49da2..fbfdc2d 100644 --- a/modules/unreal/horde/variables.tf +++ b/modules/unreal/horde/variables.tf @@ -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 = {}