astroctl_cloud_gcp_selfHosted_cleanup
astroctl cloud gcp selfHosted cleanup
Remove GCP resources created by setup
Synopsis
Remove the GCP resources that were created by 'astroctl cloud gcp selfHosted setup'.
This deletes:
- Service account and all its keys
- IAM role bindings
- GCS bucket (must be empty)
Use --show-commands to review the gcloud commands before executing. Use --service-account to target a specific service account.
astroctl cloud gcp selfHosted cleanup [flags]
Examples
# Cleanup default resources
astroctl cloud gcp selfHosted cleanup --project-id my-proj
# Cleanup specific service account
astroctl cloud gcp selfHosted cleanup --project-id my-proj \
--service-account my-sa@my-proj.iam.gserviceaccount.com
# Just show what would be deleted
astroctl cloud gcp selfHosted cleanup --project-id my-proj --show-commands
Options
--bucket string GCS bucket to delete (default: <project>-astro-selfhosted)
--cluster-name string Cluster name (for vault credential purge)
-h, --help help for cleanup
--project-id string GCP project ID (required)
--service-account string Service account email to delete (default: astro-selfhosted@<project>)
--show-commands Print gcloud commands and exit
Options inherited from parent commands
-o, --output string Output format (json|yaml) (default "yaml")
SEE ALSO
- astroctl cloud gcp selfHosted - Self-hosted cluster prerequisite management