Skip to main content

Google Cloud Platform (GCP)

Instance Template

Steps:

  1. 建立 VM Instance (via web)
  2. 關閉 VM Instance
  3. 建立 Custom Image for VM Instance (via web)
  4. 建立 Instance Template for Custom Image (via web)
    • Boot Disk: Custom Image
    • Region: Global (Recommend)
  5. 用 Instance Template 新增多個 VM Instances(via CLI or web) 
# sets up the authentication
gcloud init

# create new VM instances with the template named vm1-template
gcloud compute instances create --zone "Zone" --source-instance-template vm1-template vm2 vm3 vm4 vm5 vm6 vm7 vm8
gcloud compute instances list

Quotas

    https://cloud.google.com/compute/quotas#understanding_vm_cpu_and_ip_address_quotas

    https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html

    https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits#service-specific-limits