0
0
AWScloud~10 mins

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

Choose your learning style9 modes available
Process Flow - Instance states (running, stopped, terminated)
Launch Instance
State: running
Stop Instance
State: stopped
Start Instance
State: running
Terminate Instance
State: terminated
No further actions allowed
This flow shows how an AWS instance moves through states: launched (running), stopped, started (running), and finally terminated where it cannot be restarted.
Execution Sample
AWS
Launch instance -> Stop instance -> Start instance -> Terminate instance
This sequence shows an instance changing states from running to stopped to running, and then terminated.
Process Table
StepActionInstance State BeforeInstance State AfterNotes
1Launch instanceN/ArunningInstance is launched and running
2Stop instancerunningstoppedInstance is stopped but can be started again
3Start instancestoppedrunningInstance is now running and usable
4Terminate instancerunningterminatedInstance is permanently deleted
5Start instanceterminatedterminatedCannot start a terminated instance
💡 Instance reaches terminated state; no further actions allowed
Status Tracker
Instance StateStartAfter Step 1After Step 2After Step 3After Step 4After Step 5
stateN/Arunningstoppedrunningterminatedterminated
Key Moments - 2 Insights
Why can't we start the instance after it is terminated?
Because termination deletes the instance permanently, as shown in step 5 of the execution_table where the state remains terminated despite the start action.
Is the instance usable when it is stopped?
No, when stopped (step 2), the instance is not running and cannot serve requests, but it can be started again.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the instance state after step 2?
Arunning
Bstopped
Cterminated
Dpending
💡 Hint
Check the 'Instance State After' column for step 2 in the execution_table
At which step does the instance become permanently unusable?
AStep 4
BStep 3
CStep 2
DStep 1
💡 Hint
Look for when the state changes to 'terminated' in the execution_table
If we try to start the instance after termination, what happens to the state?
AChanges to running
BChanges to stopped
CRemains terminated
DChanges to pending
💡 Hint
See step 5 in the execution_table where start action is attempted on terminated instance
Concept Snapshot
AWS Instance States:
- stopped: instance exists but not running
- running: instance is active and usable
- terminated: instance is deleted permanently
You can start a stopped instance to run it.
You cannot start a terminated instance.
Full Transcript
This visual execution shows how an AWS instance changes states. When launched, it starts in running state, where it can serve requests. Stopping it moves it to stopped, pausing usage but allowing restart. Starting it returns it to running. Terminating deletes it permanently, preventing any further start. The execution table tracks each step and state change, clarifying when actions are allowed or blocked.