From f4f5e193e06548b7ee00c4221db420679e4b011c Mon Sep 17 00:00:00 2001 From: Minhyeok Park Date: Mon, 6 Jan 2025 10:55:24 +0900 Subject: [PATCH] fix: ignore default cluster --- src/bpsets/ecs/ECSContainerInsightsEnabled.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bpsets/ecs/ECSContainerInsightsEnabled.ts b/src/bpsets/ecs/ECSContainerInsightsEnabled.ts index edc429c..70e757f 100644 --- a/src/bpsets/ecs/ECSContainerInsightsEnabled.ts +++ b/src/bpsets/ecs/ECSContainerInsightsEnabled.ts @@ -81,6 +81,9 @@ export class ECSContainerInsightsEnabled implements BPSet { const clusters = await this.getClusters(); for (const cluster of clusters) { + if (cluster.clusterName === 'default') + continue + const containerInsightsSetting = cluster.settings?.find( (setting) => setting.name === 'containerInsights' );