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} ] ' \