Skip to content

GCP

sky.GCP is the account descriptor for the gcp provider kind. service_account_json accepts the JSON contents; GOOGLE_APPLICATION_CREDENTIALS names a file whose contents are read in the client process.

The adapter needs skyward[gcp], which brings cryptography for the service-account signature. Without it the daemon does not register the kind.

import skyward as sky

provider = sky.GCP(project="training", zone="us-central1-a", name="production")

skyward.GCP

Bases: Provider

Google Compute Engine.

GOOGLE_APPLICATION_CREDENTIALS names a file; its contents are what travel.

kind = 'gcp' class-attribute

service_account_json = None class-attribute instance-attribute

project = None class-attribute instance-attribute

zone = 'us-central1-a' class-attribute instance-attribute

network = 'default' class-attribute instance-attribute

subnet = None class-attribute instance-attribute

disk_size_gb = 200 class-attribute instance-attribute

disk_type = 'pd-balanced' class-attribute instance-attribute

instance_timeout = 300 class-attribute instance-attribute

service_account = None class-attribute instance-attribute

thread_pool_size = 8 class-attribute instance-attribute

zones property