Google compute Engine (GCE) - Instance Template

Google compute Engine (GCE) - Instance Template

ยท

2 min read

In this lab we are going to learn how to create Instance template

Instance template - Instance template helps us to ease our work, Like we don't have to go again and again create a new instance instead of that we can create a template, So that in future we can use that template to create a new VM instances.

Instance template contains a Boot disk image, machine type, startup script and other configurations.

This lab will be bit short

Step 1:- Click on Instance template.

image.png

Step 2:- click Create instance template.

image.png

Step 3:- Give a name for your template and give a machine type size.

image.png

Step 4:- Under firewall Allow HTTP traffic and Allow HTTPS traffic.

image.png

Step 5:- Expand Advanced Options under that click on Management and paste your script under startup script, Finally click on create.

chrome_eHzWwrItaR.gif image.png

Step 6:- Your Instance template is ready.

image.png

Step 7:- On the right of your instance template click on Actions followed by create VM.

image.png

Step 8:- As you can see in below gif, When you click on create VM, Your VM configuration will be same as your template, Now click on create.

chrome_vGpsd2nhz9.gif

Step 9:- We successfully created a VM using instance template.

image.png

Step 10:- Now copy and paste your External IP address in your browser your web page should work.

nhxKcRp46q.png

Step 11:- The IP address should work.

image.png

Note:- you can't edit the instance template. There are options you can use.

  • First is copy method and after that you can edit based on your wish and click create.

image.png

  • Second is Go inside your instance template and click on create similar after that you can edit according to your wish and click create.

image.png

That's it, for now, we will continue further more in next blog.

Hope you liked it. Will see you on the next topic ๐Ÿ˜ƒ

Next Topic

bvakash.hashnode.dev/google-compute-engine-..

ย