Skip to content

Instantly share code, notes, and snippets.

@b0noI
Created August 8, 2018 17:47
Show Gist options
  • Save b0noI/aea9ad8ed41a091216acbacb6cd68186 to your computer and use it in GitHub Desktop.
Save b0noI/aea9ad8ed41a091216acbacb6cd68186 to your computer and use it in GitHub Desktop.
export PROJECT_NAME="" # put your project name
export INSTANCE_NAME="" # put the instance name
# pick the zone that is supported by tpu:
# https://cloud.google.com/tpu/docs/regions
export ZONE="us-central1-b"
gcloud compute instances create $INSTANCE_NAME \
--project=$PROJECT_NAME \
--zone=$ZONE \
--machine-type=n1-standard-2 \
--subnet=default \
--image="tf-1-9-cpu-1533076560" \
--image-project=deeplearning-platform-release \
--boot-disk-size=30GB \
--boot-disk-type=pd-ssd \
--scopes=cloud-platform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment