GitHunt
JO

Cloud native system to decommission Google Cloud resources when they aren't needed anymore.

ZUNA

Zap Unused and Non-permanent Assets
(Dutch version: Zet Uwe Nest Af)

Cloud native system to decommission Google Cloud test resources.
Resources should be labeled with autodelete:true.

Features

Core

  • List active dataflow jobs
  • Drain dataflow jobs
  • List BigQuery datasets
  • Delete BigQuery datasets
  • Pub/Sub subscription list
  • Pub/Sub subscription deletion
  • Pub/Sub topic list
  • Pub/Sub topic deletion
  • GCS bucket list
  • GCS bucket deletion

Basic

  • Main script with ordered execution
  • Local invocation possible
  • BigQuery table deletion
  • BigQuery non-EU datasets
  • Dataflow drain/cancel wait
  • Dataflow cancel option (env var)

Usage

  • Pass in project id (env var)
  • Cloud function support
  • Cloud scheduler support
  • Installer: resource creation script
  • Dedicated service account
  • Standard roles on service account (project-level)
  • Dockerize
  • Publish to docker hub
  • Flag to override input (Y/n)

Installation

export GCP_PROJECT_ID=<your projecy id>
bash ./scripts/001_deploy.sh

Contributors

Created April 5, 2020
Updated December 7, 2022