0
0
GCPcloud~10 mins

Instance states (running, stopped, terminated) in GCP - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Instance states (running, stopped, terminated)
Instance Created
State: RUNNING
Stop Instance
State: STOPPED
Terminate Instance
State: TERMINATED
No further actions allowed on TERMINATED
This flow shows how a cloud instance moves between states: created as running, stopped to stopped, started back to running, or terminated permanently.
Execution Sample
GCP
Create instance
Stop instance
Start instance
Terminate instance
This sequence shows an instance changing states from running to stopped, back to running, then terminated.
Process Table
StepActionPrevious StateNew StateNotes
1Create instanceNoneRUNNINGInstance is created and starts running
2Stop instanceRUNNINGSTOPPEDInstance is powered off but can be restarted
3Start instanceSTOPPEDRUNNINGInstance boots up and is ready to use
4Terminate instanceRUNNINGTERMINATEDInstance is deleted and cannot be restarted
5Start instanceTERMINATEDTERMINATEDNo action: terminated instance cannot be started
💡 Instance reaches TERMINATED state; no further state changes allowed
Status Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 4After Step 5
Instance StateNoneRUNNINGSTOPPEDRUNNINGTERMINATEDTERMINATED
Key Moments - 2 Insights
Why can't we start the instance after it is terminated?
Because the execution_table row 5 shows the state remains TERMINATED after trying to start; terminated means deleted and cannot be restarted.
What is the difference between STOPPED and TERMINATED states?
STOPPED means the instance is powered off but can be started again (row 2), while TERMINATED means the instance is deleted permanently (row 4).
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table at step 2, what is the instance state after stopping?
ASTOPPED
BRUNNING
CTERMINATED
DNone
💡 Hint
Check the 'New State' column at step 2 in execution_table
At which step does the instance become permanently unusable?
AStep 2
BStep 4
CStep 3
DStep 5
💡 Hint
Look for when the state changes to TERMINATED in execution_table
If we skip stopping and try to terminate directly from RUNNING, what would be the new state?
ARUNNING
BSTOPPED
CTERMINATED
DNone
💡 Hint
Termination always leads to TERMINATED state regardless of previous state
Concept Snapshot
Instance states in GCP:
- STOPPED: instance is off, can start
- RUNNING: instance is on and usable
- TERMINATED: instance deleted, no restart
Actions: create -> running, stop -> stopped, start -> running, terminate -> terminated
Full Transcript
This visual execution shows how a Google Cloud instance changes states. When created, it starts in RUNNING state, where it is active. Stopping it powers it off to STOPPED, from which it can be restarted to RUNNING. Terminating deletes the instance permanently, moving it to TERMINATED state where it cannot be restarted. Trying to start a terminated instance has no effect. This flow helps beginners understand instance lifecycle and allowed actions.