Skip to main content

astroctl_cloud_gcp_connect

astroctl cloud gcp connect

Connect your GCP project for cluster provisioning

Synopsis

Connect your GCP project so AstroPulse can provision clusters.

This sets up Workload Identity Federation (WIF) in your GCP project that allows AstroPulse to manage GKE clusters on your behalf.

This opens Google Cloud Shell in your browser where you run a single command to complete the setup. No local CLI tools required. Project number is auto-detected in Cloud Shell.

Find your project ID in GCP Console: IAM & Admin > Settings

astroctl cloud gcp connect [flags]

Examples

# Connect GCP project (opens Cloud Shell in browser, auto-detects project number)
astroctl cloud gcp connect --project-id my-project --region us-central1 --cluster-name prod

# Save script to file instead of printing
astroctl cloud gcp connect --project-id my-project --region us-central1 --cluster-name prod --output setup.sh

Options

--cluster-name string Cluster name for this connection (required)
--duration string Credential duration (e.g., 30m, 1h) (default "1h")
--force-update Force reconfiguration even if already set up
-h, --help help for connect
--level string Cloud access level: read or manage (default: manage) (default "manage")
-o, --output string Save script to file instead of printing
--project-id string GCP project ID (required)
--project-number string GCP project number (optional, auto-detected in Cloud Shell)
--region string GCP region (e.g., us-central1) (required)

SEE ALSO