-vm --type aws --region=us-east-1 --auto-configureThis will automatically configure the service connector with the appropriate credentials and permissions to provision VMs on AWS. You can then use the service connector to configure your registered VM Orchestrator stack component using the following command:

# Register the orchestrator

zenml orchestrator register <ORCHESTRATOR_NAME> --flavor vm_aws

# Connect the orchestrator to the service connector

zenml orchestrator connect <ORCHESTRATOR_NAME> --connector aws-skypilot-vm

# Register and activate a stack with the new orchestrator

zenml stack register <STACK_NAME> -o <ORCHESTRATOR_NAME> ... --set

We need first to install the SkyPilot integration for GCP and the GCP extra for ZenML, using the following two commands:

pip install "zenml[connectors-gcp]"

zenml integration install gcp skypilot_gcp

To provision VMs on GCP, your VM Orchestrator stack component needs to be configured to authenticate with GCP Service Connector

To configure the GCP Service Connector, you need to register a new service connector, but first let's check the available service connectors types using the following command:

zenml service-connector list-types --type gcp

┏━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━┯━━━━━━━━┓

┃         NAME          │ TYPE   │ RESOURCE TYPES        │ AUTH METHODS    │ LOCAL │ REMOTE ┃

┠───────────────────────┼────────┼───────────────────────┼─────────────────┼───────┼────────┨

┃ GCP Service Connector │ 🔵 gcp │ 🔵 gcp-generic        │ implicit        │ ✅    │ ➖     ┃

┃                       │        │ 📦 gcs-bucket         │ user-account    │       │        ┃

┃                       │        │ 🌀 kubernetes-cluster │ service-account │       │        ┃

┃                       │        │ 🐳 docker-registry    │ oauth2-token    │       │        ┃

┃                       │        │                       │ impersonation   │       │        ┃