EMAIL SUPPORT
dclessons@dclessons.comLOCATION
AFLAB Use Cloud Function to Deploy VM by HTTP Trigger
LAB: Use Cloud Function to Deploy VM by HTTP Trigger
Task
- Login into the GCP Console.
- Creating a Cloud Function to list all the VM instances in the Project.
- Once you start the lab, 1 VM Instance will be provisioned named dclessons-vm.
- 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.