Creating a Custom Machine Type with Terraform
A machine type specifies a particular collection of virtualized hardware resources available to a virtual machine (VM) instance, including the memory size, virtual CPU count, and maximum persistent disk capability.
Machine types are classified into two categories:
- Predefined machine types: Machines that are managed by Google Compute Engine and have a fixed collection of resources.
You can get a list of those by entering in Cloud Shell:
gcloud compute machine-types list
- Custom machine types: Machines with custom virtualized hardware settings. You can create an instance with a custom number of vCPUs and amount of memory.
In this lab you'll create an instance with a custom machine type (6 vCPU i.e. 6 cores and 64 GB memory), a bastion host, and a NAT gateway using Terraform.
Familiarity with Terraform
Join Qwiklabs to read the rest of this lab...and more!
- Get temporary access to the Google Cloud Console.
- Over 200 labs from beginner to advanced levels.
- Bite-sized so you can learn at your own pace.