An instance template is a saved VM definition: machine type, boot image, disks, network, metadata such as a startup script, labels and service account. Templates are immutable; to change anything you create a new template. You create one with gcloud compute instance-templates create web-v2 --machine-type=e2-medium --image-family=debian-12 --image-project=debian-cloud --tags=web --metadata-from-file=startup-script=start.sh.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 4 more sections, 4 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.