Skip to main content

astroctl cloud gcp selfHosted connect

Store your own GCP credentials in AstroPulse's encrypted vault

Synopsis​

Store your GCP service account key in AstroPulse's encrypted vault so AstroPulse can access your GCP project for cluster provisioning.

Send the key setup wrote: AstroPulse stores it only in the organization that started the setup, for the service account setup made. To bring your own service account instead, pass --without-setup: the key is then stored in the organization astroctl is signed in to, which connect names before sending it.

AstroPulse checks the key reaches the project, the required APIs are enabled, the service account holds the required roles and the state bucket is accessible, stores the key only when every check passes, and records the result on the cluster's setup ('astroctl cloud gcp selfHosted status').

Credentials must be provided explicitly via --credentials flag. Environment variables are NOT used: connect stores credentials in the vault, so you must deliberately provide the service account key created by setup.

Terminal
astroctl cloud gcp selfHosted connect [flags]

Examples​

Terminal
# Check vault status
astroctl cloud gcp selfHosted connect --cluster-name prod

# Bring your own service account, with no setup
astroctl cloud gcp selfHosted connect --project-id my-proj --region us-central1 \
--credentials /path/to/key.json --cluster-name prod --without-setup

# Rotate: send a new key in place of the stored one
astroctl cloud gcp selfHosted connect --project-id my-proj --region us-central1 \
--credentials ~/.astropulse/credentials/my-proj.json --cluster-name prod --replace

# Connect with key file from setup
astroctl cloud gcp selfHosted connect --project-id my-proj --region us-central1 \
--credentials ~/.astropulse/credentials/my-proj.json --cluster-name prod

Options​

Terminal
--bucket string State store bucket (defaults to the bucket setup creates)
--cluster-name string Cluster name (required)
--credentials string Path to GCP service account JSON key
-h, --help help for connect
--project-id string GCP project ID (required for BYOC)
--region string GCP region (required for BYOC)
--replace Replace the key already stored for the cluster, to rotate it
--without-setup Store credentials you made yourself, with no setup for the cluster: they are stored in the organization astroctl is signed in to, which connect names before sending them

Options inherited from parent commands​

Terminal
-o, --output string Output format (table|json|yaml) (default "table")

SEE ALSO​