EMAIL SUPPORT

dclessons@dclessons.com

LOCATION

AF

LAB Use Cloud Function to Deploy VM by HTTP Trigger

LAB Use Cloud Function to Deploy VM by HTTP Trigger

LAB: Use Cloud Function to Deploy VM by HTTP Trigger

Task

  1. Login into the GCP Console.
  2. Creating a Cloud Function to list all the VM instances in the Project.
  3. Once you start the lab, 1 VM Instance will be provisioned named dclessons-vm.
  4. Trigger the function through HTTP Request to print the list of VM instances in the Project.

Solution

Go to GCP Menu | More Products | Serverless | Cloud Function

Click on Create Function

In Basics: Environment: 1st gen | Function name: Dclessons-Instances | Region: us-central1

Under Trigger: Trigger type HTTP | Authentication: Allow authentication invocations | Click Require HTTPS | Save

Expand Runtime, Build, Connections and Security Setting | Under Runtime Service Account: Select the Proper Service account | Under Auto Scaling: put 3 under maximum number of Instances | Next

Select Runtime: Python3.7 | Source Code Inline Editor | In Entry Point: write main | Select main.py


Comment

    You are will be the first.

LEAVE A COMMENT

Please login here to comment.