Overview
This document guides you on how to launch the Compute Engine instance on GCP.
Launch Compute Engine
- On the GCP Console, search for
Compute Engine, and navigate to theCompute EngineGCP service. Click on CREATE INSTANCE at the top. - Put an appropriate name for the instance, and select an appropriate region and zone.
- Select an appropriate machine configuration. Here, we have selected E2 machine.
- In the machine type, we have selected
e2-medium. You can choose a larger machine in case you want to run multiple processes on this machine. - Coming to the
Boot Disksection, click on CHANGE button. - Select the
Ubuntuoperating system, and the version asUbuntu 22.04 LTS x86/64, amd64 image. You can put the disk size as per your requirement. We are going with20GBdisk size for this example. Click onSave. - In the
Identity and API Accesssection, select the service account that has atleastPub/Sub Editorpermission. - In the
Firewallsection, selectAllow HTTP accessandAllow HTTPS access. - Click on CREATE button at the bottom, and wait for the instance to get created.
- Once the instance is created, click on the
SSHbutton to connect to the instance. Click on theAuthorizebutton on the popup. With this you will enter into the terminal of the instance.