Skip to content

Commit

Permalink
unused aws instace and vpcs cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <shivaku@nvidia.com>
  • Loading branch information
shivakunv committed Dec 17, 2024
1 parent 094b980 commit a335eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/awscleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a335eb5

Please sign in to comment.