aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gce
diff options
context:
space:
mode:
authorGravatar Matt Kwong <mattkwong@google.com>2017-09-13 18:27:55 -0700
committerGravatar Matt Kwong <mattkwong@google.com>2017-09-13 18:27:55 -0700
commit438304960f95169a7a0272ff684b80805ced9cba (patch)
tree05bd5bb1314836a54023edf54611e647d49e7506 /tools/gce
parent5e81d0927987fdd631e0242c36c1a80a8c1bc9dd (diff)
Add allow-ssh tags to newly created GCE VMs
Diffstat (limited to 'tools/gce')
-rwxr-xr-xtools/gce/create_interop_worker.sh3
-rwxr-xr-xtools/gce/create_linux_performance_worker.sh3
-rwxr-xr-xtools/gce/create_linux_worker.sh3
3 files changed, 6 insertions, 3 deletions
diff --git a/tools/gce/create_interop_worker.sh b/tools/gce/create_interop_worker.sh
index 76e4905272..3e59dc501a 100755
--- a/tools/gce/create_interop_worker.sh
+++ b/tools/gce/create_interop_worker.sh
@@ -33,7 +33,8 @@ gcloud compute instances create $INSTANCE_NAME \
--machine-type n1-standard-16 \
--image ubuntu-15-10 \
--boot-disk-size 1000 \
- --scopes https://www.googleapis.com/auth/xapi.zoo
+ --scopes https://www.googleapis.com/auth/xapi.zoo \
+ --tags=allow-ssh
echo 'Created GCE instance, waiting 60 seconds for it to come online.'
sleep 60
diff --git a/tools/gce/create_linux_performance_worker.sh b/tools/gce/create_linux_performance_worker.sh
index 7f53732c05..4270f5cbfb 100755
--- a/tools/gce/create_linux_performance_worker.sh
+++ b/tools/gce/create_linux_performance_worker.sh
@@ -36,7 +36,8 @@ gcloud compute instances create $INSTANCE_NAME \
--image-project ubuntu-os-cloud \
--image-family ubuntu-1704 \
--boot-disk-size 300 \
- --scopes https://www.googleapis.com/auth/bigquery
+ --scopes https://www.googleapis.com/auth/bigquery \
+ --tags=allow-ssh
echo 'Created GCE instance, waiting 60 seconds for it to come online.'
sleep 60
diff --git a/tools/gce/create_linux_worker.sh b/tools/gce/create_linux_worker.sh
index c96f3281fc..8bf44aa729 100755
--- a/tools/gce/create_linux_worker.sh
+++ b/tools/gce/create_linux_worker.sh
@@ -31,7 +31,8 @@ gcloud compute instances create $INSTANCE_NAME \
--image=ubuntu-1510 \
--image-project=grpc-testing \
--boot-disk-size 1000 \
- --scopes https://www.googleapis.com/auth/bigquery
+ --scopes https://www.googleapis.com/auth/bigquery \
+ --tags=allow-ssh
echo 'Created GCE instance, waiting 60 seconds for it to come online.'
sleep 60