No video

GCP Automation | Use Google Cloud Functions and Python to start and stop VMs | Compute Engine

  Рет қаралды 11,840

The Cloud Nerd

The Cloud Nerd

Күн бұрын

Пікірлер: 20
@pappa007
@pappa007 3 жыл бұрын
Love it man. Just Amazing
@robertgraham7751
@robertgraham7751 Жыл бұрын
Nicely done
@michaelbrand2044
@michaelbrand2044 Жыл бұрын
That is an excellent quick tutorial. Could you please share any documentation on how to work and interact more with cloud functions? I have tried to work with other services and resources, but I usually get a 500 Error. Thank you
@hashemalsaket516
@hashemalsaket516 2 жыл бұрын
Awesome tutorial.
@dangerous4821
@dangerous4821 2 жыл бұрын
I have multiple vms and also new vms are created anytime so i want to stop all vms, how can i do that? What to put in VM_NAME then?
@vimaladeshmukh4017
@vimaladeshmukh4017 2 жыл бұрын
It was an wonderful video thank you so much for that I have a request. Can you please show us how to take back up and restore gsm parameters in gcp bucket by writing shellscript and with running jenkins job using crontab
@salehram
@salehram 2 жыл бұрын
Interesting stuff! Definitely will do it. I've actually done something a bit similar to this before using Jenkins so I'll definitely work on something for this Will keep you updated once I get that up! Regards
@vimaladeshmukh4017
@vimaladeshmukh4017 2 жыл бұрын
@@salehram thanks for your reply..pls share that video which u have done earlier
@salehram
@salehram 2 жыл бұрын
It wasn't a video I had :), it was a scenario I worked on previously to automate a few tasks in an environment and I ended up using Jenkins and Ansible as well Will build an environment and do a few scenarios and then post the video here!
@salehram
@salehram 2 жыл бұрын
Just to add context, I made Jenkins control a few VMs and perform some tasks through the integration with Ansible. I was able to use Cloud Source Repos, and gsutil and gcloud to perform a few deployment tasks in an environment..
@ashoksuperb
@ashoksuperb 2 жыл бұрын
Is it possible to create dataproc clusters in the morning and delete them by evening using CloudFunctions ?
@souza-m7l
@souza-m7l 2 жыл бұрын
Error: Forbidden Your client does not have permission to get URL /stopVM from this server. HALP! obviously i gotta look at the permissions more closely.. but it was set to compute admin v1.. so im lost!
@hik381
@hik381 2 жыл бұрын
Really nice video. Thank you :) I have a question, maybe you can help :) Can you deliver a message or parameter as well in this process (from gcfunction to vm)? My goal is to run differnt scripts based on the added message.
@salehram
@salehram 2 жыл бұрын
Hi, yes sure you can do that, though I have to test the process to provide any details, but I think you will need to use Pub/Sub in the process by having your function send a message to that, and then you put a listener inside the VM that listens to a specific topic and pulls any message from that once it is sent from the function.. But here in this case you need to start accounting for the security and who is authorized to trigger the function and so on... I'll be having a video soon about a way you can use to secure your manually triggered cloud functions I hope it will help :) Regards
@hik381
@hik381 2 жыл бұрын
@@salehram Thank you very much. Looking forward to the video.
@neno5rov
@neno5rov 2 жыл бұрын
Is it possible to also run VM commands from the cloud function, after you start the VM?
@salehram
@salehram 2 жыл бұрын
Hi, Well I think you can do it with 2 ways... One is to attach a startup script to the VM and then start it, so the startup script will be executed upon the VM's start Or you can introduce another layer of control which is Ansible, where you can integrate it with your Cloud Function and execute commands on the VM through that as well... I have worked with Ansible but not through Cloud Functions yet, and I think it would be interesting to test it and see how it works with Cloud Functions... Regards
@nholmes86
@nholmes86 2 жыл бұрын
you talk too much...see how others do video
@salehram
@salehram 2 жыл бұрын
Yes! I know I talk too much, that's why I make sure to add the chapters. Also would love to get some references for those others you mentioned 😊
@rememberwhenwe8
@rememberwhenwe8 2 жыл бұрын
@@salehram I enjoyed your video -- good work, Brother!
Google Cloud Functions - Serverless in GCP
17:52
Cloud Advocate
Рет қаралды 22 М.
Dockerize Python script and deploy to Google Compute Engine (GCE)
14:24
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 10 МЛН
Happy birthday to you by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 11 МЛН
Lehanga 🤣 #comedy #funny
00:31
Micky Makeover
Рет қаралды 30 МЛН
Automate Python script execution on GCP
14:14
Cloud 4 Data Science
Рет қаралды 23 М.
Cloud Functions vs. Cloud Run
20:37
Google Cloud Tech
Рет қаралды 48 М.
How This New Battery is Changing the Game
12:07
Undecided with Matt Ferrell
Рет қаралды 210 М.
Trading Stocks with Google Cloud Functions
31:05
Part Time Larry
Рет қаралды 17 М.
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 10 МЛН