0
0
GCPcloud~3 mins

Why Instance states (running, stopped, terminated) in GCP? - Purpose & Use Cases

Choose your learning style9 modes available
The Big Idea

What if you could instantly know which cloud machines are costing you money without opening each one?

The Scenario

Imagine you have many virtual machines (VMs) running on your computer, and you need to keep track of which ones are on, which are off, and which you have deleted.

Doing this by opening each VM one by one and checking its status is like walking through a big office and asking every person if they are working or on break.

The Problem

This manual checking is slow and tiring. You might forget to turn off some VMs, wasting money. Or you might accidentally delete a VM you still need because you lost track.

It's easy to make mistakes, and fixing them takes even more time.

The Solution

Cloud providers like GCP give clear states for each VM: running, stopped, or terminated.

This helps you quickly see what each VM is doing without opening it. You can automate actions based on these states, saving time and avoiding errors.

Before vs After
Before
Check each VM status by logging into each one manually.
After
Use GCP commands or dashboard to list VM states at once.
What It Enables

Instantly know and control your VMs' status to save money and keep your cloud organized.

Real Life Example

A company stops unused VMs automatically at night to reduce costs, then starts them again in the morning, all by checking instance states.

Key Takeaways

Manual VM status checks are slow and error-prone.

Instance states give clear, quick info about VM activity.

Using states helps automate management and save resources.