Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
declare -a regions=('us-central1-a' 'us-west1-a' 'us-east1-b' 'northamerica-northeast1-a' 'us-east4-a' 'southamerica-east1-a' 'europe-west1-b' 'europe-west2-a' 'europe-west3-a' 'europe-west4-b' 'asia-south1-a' 'asia-southeast1-a')
for region in ${regions[@]}; do
gcloud compute instances create \
--machine-type=n1-highcpu-16 \
--preemptible \
--zone $region \
spotty-${region} \
--metadata-from-file startup-script=/home/ixaxaar/unitus_startup.sh
done
declare -a regions=('us-central1-a' 'us-west1-a' 'us-east1-b' 'northamerica-northeast1-a' 'us-east4-a' 'southamerica-east1-a' 'europe-west1-b' 'europe-west2-a' 'europe-west3-a' 'europe-west4-b' 'asia-south1-a' 'asia-southeast1-a')
for region in ${regions[@]}; do
gcloud compute instances create \
--machine-type=n1-highcpu-8 \
--preemptible \
--zone $region \
spotty8-${region} \
--metadata-from-file startup-script=/home/ixaxaar/unitus_startup.sh
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment