Skip to content

Part 1: Creating an Instance on Google Cloud

Overview

This section walks through provisioning a VM instance, configuring networking, and SSH access.

flowchart LR
  A[Select Project & Zone] --> B[Choose Machine Type]
  B --> C[Configure Boot Disk]
  C --> D[Set OS & Networking]
  D --> E[Review & Create]
  E --> F[SSH into VM]

Steps

  1. Name Instance & Select Zone

    • Choose a region and zone that optimize latency for your users.
  2. Select Machine Type

    gcloud compute instances create my-instance \
      --zone=us-central1-a \
      --machine-type=n1-standard-2
    

  3. Boot Disk Configuration

    • OS: CentOS 7.5 (64-bit)
    • Disk size: 30 GB SSD
  4. Networking & DNS

    • Reserve a static external IP.
    • Add A‐record pointing to the VM IP in Cloud DNS.
  5. SSH Access

    gcloud compute ssh my-instance --zone=us-central1-a