From a49e37154e9b61312faf387afa1d8bbb2e1b3462 Mon Sep 17 00:00:00 2001 From: Hassy Veldstra Date: Tue, 11 Jun 2024 15:05:41 +0100 Subject: [PATCH] fix(ecs): set ADOT's cpu/memory config only if the container exists (#3192) --- packages/artillery/lib/platform/aws-ecs/legacy/run-cluster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/artillery/lib/platform/aws-ecs/legacy/run-cluster.js b/packages/artillery/lib/platform/aws-ecs/legacy/run-cluster.js index 2ad5fc4247..6e68561842 100644 --- a/packages/artillery/lib/platform/aws-ecs/legacy/run-cluster.js +++ b/packages/artillery/lib/platform/aws-ecs/legacy/run-cluster.js @@ -1201,7 +1201,7 @@ async function ensureTaskExists(context) { context.taskDefinition = taskDefinition; - if (!context.isFargate) { + if (!context.isFargate && taskDefinition.containerDefinitions.length > 1) { // Limits for sidecar have to be set explicitly on ECS EC2 taskDefinition.containerDefinitions[1].memory = 1024; taskDefinition.containerDefinitions[1].cpu = 1024;