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
.
- 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
- Main script with ordered execution
- Local invocation possible
- BigQuery table deletion
- BigQuery non-EU datasets
- Dataflow drain/cancel wait
- Dataflow cancel option (env var)
- 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)
export GCP_PROJECT_ID=<your projecy id>
bash ./scripts/001_deploy.sh