We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4de72c commit a95d608Copy full SHA for a95d608
1 file changed
infrastructure/terraform/variables.tf
@@ -203,3 +203,21 @@ variable "sqs_max_receive_count" {
203
type = number
204
default = 3
205
}
206
+
207
+variable "max_active_builds" {
208
+ description = <<-EOT
209
+ Maximum number of concurrently active builds (queued + in-flight).
210
+ Requests that would exceed this limit receive HTTP 429.
211
+ Each active build may launch up to 2 EC2 Spot instances (one per architecture),
212
+ so this cap directly bounds worst-case concurrent EC2 costs.
213
214
+ Default: 10 (= up to 20 simultaneous Spot instances)
215
+ EOT
216
+ type = number
217
+ default = 10
218
219
+ validation {
220
+ condition = var.max_active_builds >= 1 && var.max_active_builds <= 100
221
+ error_message = "max_active_builds must be between 1 and 100."
222
+ }
223
+}
0 commit comments