GCP Automation | Use Google Cloud Functions and Python to start and stop VMs | Compute Engine
I have thought to start small series of videos about GCP automation. GCP is a great cloud service and it is very open for automation in everything. GCP automation can be done using Cloud Functions, or App Engine, or even by utilizing gcloud command line tool. In GCP you can use #Python with #Cloud #Functions to automate the VMs start and stop operations. Some times you want to allow people to control some VMs but you don't want to add them to the #GCP project, or you may want to create some sort of a workflow and an automation for this process. I will show you in this video how to do this with 6 lines of code only using Python and Cloud Functions. Cloud Functions is part of #Google Cloud Platform services and it is a serverless offering that will allow you to host your code and run it without worrying about the underlying infrastructure. Cloud Functions is a function-as-a-service, where you will host your code and it will be invoked based on a trigger, such as an HTTP-based trigger which is the one that I'm going to show you here. You can also use other triggers such as #PubSub or #Firebase or #GCS.. In this view I will be covering the following topics: 00:00 Introduction 00:58 Use case 01:51 Environment summary 02:08 Prerequisites 04:58 The scripts overview 06:46 The deployment process 08:13 Creating the service account & granting the permissions 11:51 Enable the required APIs 13:42 Creating the Cloud Functions 23:40 Testing 26:21 Further expansions 28:58 Closing ---------------------------- Links mentioned in the video: My Girhub repository with the functions: https://github.com/salehram/gcp-cf-py... How to securely invoke a Cloud Function from Google Kubernetes Engine running on another GCP project: / how-to-securely-invoke-a-cloud-function-fr... Check out my website as well for a text-based version of this video: https://www.salehram.com/2021/08/05/s... ------------------------ Check out my course on Udemy for #GoogleWorkspace Admin Training, which is a full comprehensive #course about almost everything in Google Workspace! https://www.udemy.com/course/the-comp... ------------------------ Interesting channels to follow and subscribe: Google Workspace - / @googleworkspace Google Cloud Tech - / @googlecloudtech Google Cloud - / @googlecloud Learn GCP with Mahesh - / @learngooglecloudwithmahesh

Cloud Functions vs. Cloud Run

Build Your Agentic Workforce with Gemini Enterprise: Webinar by Shivaami and Google Cloud

Picking the right serverless platform (Part 1)

gcloud | How to setup and configure gcloud command line tool and basic commands | gcloud tutorial

Google Cloud Functions - Serverless in GCP

Google Cloud Functions Python QuickStart: HTTP & Serverless Tutorial with Example

How Google Makes Custom Cloud Chips That Power Apple AI And Gemini

Model Context Protocol (MCP) Explained for Beginners: AI Flight Booking Demo!

But what is quantum computing? (Grover's Algorithm)

Stackdriver integration with pubsub and Cloud functions - Event driven architecture

Gcloud command-line tips and tricks

Dockerize Python script and deploy to Google Compute Engine (GCE)

GCP | How to secure Cloud Functions using IAP and App Engine

Getting started with Cloud Functions

Managed Airflow Instance with Google Cloud Composer | Product Spotlight | Google Cloud Platform

Securing Cloud Function using Google Cloud API Gateway

Using Google BigQuery with Python

Automate Python script execution on GCP

Trading Stocks with Google Cloud Functions

