From 68d3445036babd5efa2e3077597b6ab6b958128e Mon Sep 17 00:00:00 2001 From: Rasmus Mikkelsen Date: Wed, 17 Aug 2022 12:29:33 +0200 Subject: [PATCH] fix(runners): Pass allocation strategy (#2345) --- modules/runners/lambdas/runners/src/aws/runners.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/runners/lambdas/runners/src/aws/runners.ts b/modules/runners/lambdas/runners/src/aws/runners.ts index 20a2d93770..5042e8be1f 100644 --- a/modules/runners/lambdas/runners/src/aws/runners.ts +++ b/modules/runners/lambdas/runners/src/aws/runners.ts @@ -148,7 +148,7 @@ export async function createRunner(runnerParameters: RunnerInputParameters): Pro ], SpotOptions: { MaxTotalPrice: runnerParameters.ec2instanceCriteria.maxSpotPrice, - AllocationStrategy: 'capacity-optimized', + AllocationStrategy: runnerParameters.ec2instanceCriteria.instanceAllocationStrategy, }, TargetCapacitySpecification: { TotalTargetCapacity: numberOfRunners,