We will cover the following tasks in 23 minutes:
Introduction and Setup
The lab that we are working with today is part of Qwiklabs’ GCP Essentials Quest. Before we get to the actual lab, we will familiarize ourselves to the Rhyme interface.
Start Lab and Sign into GCP
Hopefully, you have the required credits in Qwiklabs. Let’s click on the Start Lab button on the top left corner on our screen. Then, click on the Launch button. This will give you your unique credentials - that is, your unique user id, password and GCP project identifier. You will also see a timer on top which indicates the duration for which these credentials can be used on GCP.
Activate Google Cloud Shell
To manage your resources, GCP provides you with a cloud shell. This is a virtual machine which comes with some development tools and provides access to GCP services and resources.
Create VM Instance from GCP Console
In this task, we are going to create a virtual machine instance on GCP using the GCP console. First, go to the main navigation menu in your Cloud console. Find the option that says Compute Engine and select the VM Instances sub menu. We don’t have any existing VM or virtual machine instances in our project. Let’s click on the create button to create one. There are many parameters that can be configured for the virtual machine instances.
We want to install a web server called NGINX on this instance. To do that, we will access the VM instance using SSH or secure shell. Clock on the SSH button on the right hand side and it will launch a new window with the shell.
Create VM Instance with gcloud
Instead of using the Cloud Console, we could also create VM instances using the gcloud cli which is pre-installed on google cloud shell as we saw in the second task of this project. Once you start using GCP frequently, you will find the gcloud cli very useful and much faster to use compared to using the Cloud Console.
About the Host (Amit Yadav)
I am a machine learning engineer with focus in computer vision and sequence modelling for automated signal processing using deep learning techniques. My previous experiences include leading chatbot development for a large corporation.