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.
19 lines
1020 B
19 lines
1020 B
#!/bin/bash
|
|
SERVERNAME=sbc-04-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 \
|
|
--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=projects/debian-cloud/global/images/debian-11-bullseye-v20231115 \
|
|
--image-project=debian-cloud \
|
|
--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
|