
#!/bin/bash
apt update
apt -y install apache2
echo "Hello world from $(hostname) $(hostname -i)" > /var/www/html/index.html
Just to remind!
Make sure you TERMINATE all of your VM Instances
Keep it up!
To see list of MIG
1) gcloud compute instance-groups managed list
Create Instance Groups
2) gcloud compute instance-groups managed create my-mig --zone us-central1-a --template instance-template-1 --size 1
3) gcloud compute instance-groups managed delete/describe/list
Set & Stop Autoscaling
4) gcloud compute instance-groups managed set-autoscaling my-mig --max-num-replicas=2 --zone us-central1-a
5) gcloud compute instance-groups managed stop-autoscaling my-mig --zone us-central1-a
Resize the group:
6) gcloud compute instance-groups managed resize my-mig --size=1 --zone=us-central1-a
7) gcloud compute instances managed list
Recreate one or more instances (delete or create instances)
7) gcloud compute instances managed list
8) gcloud compute instance-groups managed recreate-instances my-mig --instances=my-mig-hfrm --zone=us-central1-a
Update specific instances from the group
9) gcloud compute instance-groups managed update-instances my-mig --instances=my-mig-hfrm
Update instance template
10) gcloud compute instance-groups managed set-instance-template my-mig --template=v2-template
Start your journey with Google Cloud Platform (GCP) which is one of the fastest growing cloud platforms in 2023. Knowing Google Cloud Platform gives you lots of opportunity for your future career! With this course you can have 30 sections, 188+ lectures 11+ hours of amazing content designed for beginners to learn GCP
This course aims to provide a thorough overview of GCP. From the core services like Compute, Storage, and Networking to the advanced services, this course introduces the key concepts and then indicates you how to start being effective. Each section includes a hands-on demo of one of the key services. You will also learn the use cases and scenarios for some of the most significant services of Google Cloud.
This course will give you a well structured and planned content where you can spend your each day on learning specific GCP Service without overburdening. Starting from course introduction, we will dive each day with learning Google Cloud Platform Service.
First 10 days of this course is designed for learning Compute options on Google Cloud including Overview of GCP, Getting started with Google Cloud, Google Compute Engine, Optimizing Costs and Performance, Instance groups, load balancing, google app engine, google Kubernetes engine, google cloud functions.
From day 11 we will explore other Google Cloud Services like Cloud Run, Encryption with Cloud KMS, Block & File Storage, Object storage, Cloud IAM, Relational and No SQL Databases, Cloud VPC, Cloud Pub/Sub, and Google Cloud Operations.
Last 10 days of this course will be on learning services like Google Cloud Analytics, Cloud Marketplace, Integration Services, CI/CD, Machine Learning, Pricing Calculator and other important services, GCP tools and exploring Qwiklabs. We will finish up with understanding of Google Cloud Certifications and our next steps.
Join me in this course if you're ready to dive into GCP. You won't be disappointed!
I will see you in the next lecture!