From a335eb5eb0635647f7f06c081f0d0ac7135a5899 Mon Sep 17 00:00:00 2001 From: shiva kumar Date: Tue, 17 Dec 2024 13:13:55 +0530 Subject: [PATCH] unused aws instace and vpcs cleanup Signed-off-by: shiva kumar --- .github/workflows/awscleanup.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/awscleanup.yaml b/.github/workflows/awscleanup.yaml index 7a18a59e..89a401c8 100644 --- a/.github/workflows/awscleanup.yaml +++ b/.github/workflows/awscleanup.yaml @@ -54,8 +54,8 @@ jobs: --query "RouteTables[?Associations[?Main==true]].RouteTableId" \ --output text) - if [ -z "$main_route_table" ]; then - echo "No main route table found for VPC: $vpc. Skipping." + if [ -n "$main_route_table" ]; then + echo "VPC: $vpc is associated with a main route table ($main_route_table). Skipping." continue fi