RamPrakash
RamPrakash

Reputation: 3282

Instance Template using Machine Image

I have used AWS. I am new to GCP. I am really confused by the concept called Machine Image from GCP for some reason. It sounds a lot like AWS AMI.

I created a Machine Image from a running VM.

But interestingly when I create a new instance / instance template , I do NOT see any option to choose the machine image.

enter image description here

How to create an instance template which uses the machine image?

Upvotes: 3

Views: 1315

Answers (1)

James S
James S

Reputation: 1314

Custom images capture the contents of a single disk, for example, a boot disk, which can be used to create new instances that are preconfigured with the apps that you need, so that you don’t have to configure public images from scratch.

Machine images are a more comprehensive resource that can contain multiple disks, as well as all of the information required to capture and create a new instance, including:

  • Instance properties (machine type, labels, volume mapping, network tags)
  • Data of all attached disks (one or multiple)
  • Instance metadata
  • Permissions, including the service account used to create the instance

Please see this documentation on when its best to use machine image

For your use case, instead of using a machine image, you may just create a Custom Image off of your running instance and use it as a Boot Disk (Custom Image) for your Instance Template. You may refer to this document as a guide.

Upvotes: 4

Related Questions