diff --git a/services/terraform/self-host/keyserver_secondary.tf b/services/terraform/self-host/keyserver_secondary.tf --- a/services/terraform/self-host/keyserver_secondary.tf +++ b/services/terraform/self-host/keyserver_secondary.tf @@ -141,7 +141,7 @@ enable_execute_command = true enable_ecs_managed_tags = true force_new_deployment = true - desired_count = 1 + desired_count = var.desired_secondary_nodes network_configuration { subnets = [data.aws_subnets.default.ids[0], data.aws_subnets.default.ids[1]] diff --git a/services/terraform/self-host/variables.tf b/services/terraform/self-host/variables.tf --- a/services/terraform/self-host/variables.tf +++ b/services/terraform/self-host/variables.tf @@ -65,3 +65,8 @@ type = string default = "db.t4g.medium" } + +variable "desired_secondary_nodes" { + description = "Desired number of secondary nodes" + type = number +}