Skip to content

Conversation

@Supreeth095
Copy link
Contributor

  • Add vpc-sweeper.sh script to clean up test VPCs older than 7 days
  • Add GitHub workflow to run sweeper weekly on Sunday 9am PST
  • Add Makefile targets for vpc-sweeper and vpc-sweeper-force
  • Includes dry-run mode by default for safety

What type of PR is this?
improvement

Which issue does this PR fix?:

Cron Jobs never run because VPC count is always exceeding quota. We need a sweeper that cleans up Stale VPCs and corresponding resources.

What does this PR do / Why do we need it?:
Cron Jobs never run because VPC count is always exceeding quota. We need a sweeper that cleans up Stale VPCs and corresponding resources.

Testing done on this change:

Will this PR introduce any new dependencies?:
No

Will this break upgrades or downgrades? Has updating a running cluster been tested?:

Does this change require updates to the CNI daemonset config files to work?:
No

Does this PR introduce any user-facing change?:
No


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

- Add vpc-sweeper.sh script to clean up test VPCs older than 7 days
- Add GitHub workflow to run sweeper weekly on Sunday 9am PST
- Add Makefile targets for vpc-sweeper and vpc-sweeper-force
- Includes dry-run mode by default for safety
@Supreeth095 Supreeth095 requested a review from a team as a code owner September 3, 2025 23:39
@Supreeth095 Supreeth095 self-assigned this Sep 3, 2025
@yash97
Copy link
Contributor

yash97 commented Sep 3, 2025

will this script delete eks cluster created resources only or will also cleanup stale resources from cluster created through kops

@Supreeth095 Supreeth095 requested review from haouc and yash97 September 3, 2025 23:46
@Supreeth095
Copy link
Contributor Author

will this script delete eks cluster created resources only or will also cleanup stale resources from cluster created through kops
This deletes only resources created with test cluster tags.

@jaydeokar
Copy link
Collaborator

Can you please add testing details here ? Maybe run it against the test account to check if everything is getting cleaned up and add it here. Also this script does not cover kops clusters which gets leaked

@jaydeokar jaydeokar marked this pull request as draft October 21, 2025 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants