You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
1010 B
18 lines
1010 B
#!/bin/bash
|
|
SERVERNAME=sbc-02-gcp
|
|
gcloud beta compute --project=ccoe-246623 instances create $SERVERNAME \
|
|
--zone=us-east1-c \
|
|
--machine-type=e2-medium \
|
|
--network-interface subnet=wg-01-sip-subnet,address=34.73.142.25 \
|
|
--network-interface subnet=default \
|
|
--tags cctel,sbcwebrtc,sipco \
|
|
--maintenance-policy=MIGRATE \
|
|
--service-account=410241780838-compute@developer.gserviceaccount.com \
|
|
--scopes=https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/logging.write,https://www.googleapis.com/auth/monitoring.write,https://www.googleapis.com/auth/servicecontrol,https://www.googleapis.com/auth/service.management.readonly,https://www.googleapis.com/auth/trace.append \
|
|
--image=centos-7-v20190813 \
|
|
--source-machine-image sbc-02-gcp-2021-03-21 \
|
|
--metadata-from-file startup-script=$SERVERNAME.bash.sh,user-data=$SERVERNAME.cloud-init.yaml \
|
|
--no-shielded-secure-boot \
|
|
--shielded-vtpm \
|
|
--shielded-integrity-monitoring \
|
|
--reservation-affinity=any |