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 19, 2024
1 parent 34988d4 commit 9264ab2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/awscleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,20 @@ jobs:
continue
fi
echo "SHIVA $response"
echo "$response" | jq -r "
.jobs? // [] |
map(select(.status != \"completed\")) |
length")
echo "SHIVA1"
is_jobs_not_completed=$(echo "$response" | jq -r "
.jobs? // [] |
map(select(.status != \"completed\")) |
length")
echo "SHIVA2 $is_jobs_not_completed"
if [[ "$is_jobs_not_completed" -eq 0 ]]; then
echo "Holodeck e2e Job status is not in running stage , Delete the dependent resources"
echo "Holodeck e2e Job status is not in running stage , Delete the vpc $vpc and dependent resources"
scripts/awscleanup.sh $vpc
fi
done
Expand Down

0 comments on commit 9264ab2

Please sign in to comment.