From 8482268d4353b16a2596d61c965aea84361d7d27 Mon Sep 17 00:00:00 2001 From: Kenneth Bingham Date: Wed, 28 Feb 2024 14:47:23 -0500 Subject: [PATCH] exclude instances named like 'flow-control.*' --- zititest/scripts/housekeeper-aws.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zititest/scripts/housekeeper-aws.bash b/zititest/scripts/housekeeper-aws.bash index 40449b315..f03f3d737 100644 --- a/zititest/scripts/housekeeper-aws.bash +++ b/zititest/scripts/housekeeper-aws.bash @@ -18,9 +18,9 @@ function describe_instances() { --arg region "$region" \ --arg oldest "$oldest" ' [ - .[] - |.[] + .[][] |select(.LaunchTime < $oldest) + | select(.Tags[] | select(.Key=="Name").Value | test("flow-control\\.*") | not ) |{InstanceId: .InstanceId, Region: $region, LaunchTime: .LaunchTime, State: .State, Tags: .Tags} ] ' \