The Amazon ec2 instance lifecycle explained in most simple way..

Опубликовано: 08 Август 2026
на канале: cloud with mohsin
372
5

Hello There,

Welcome to my YouTube channel :)

The amazon ec2 instance lifecycle contains various phases such as pending running , stopped , terminated etc. throughout its lifecycle

Running State – Once we launch ec2 instance from an AMI , it first goes to ‘pending’ state and then to ‘running’ phase.

Stopped State –applicable only for the instances with EBS backed root volume. Ephemeral or instance store backed ec2 instance results into data loss once stopped. For EBS root volume, the volume remains attached. The Public IP address is lost, the private IPv4,IPv6 and Elastic IP addresses are retained. The contents of RAM are lost.

Hibernating State – this feature is applicable only on supported AMIs and can be enabled during the instance launch option.The data in RAM is stored to EBS volume and hence unaffected. The RAM contents are reloaded from EBS volume and processes are resumed.

Rebooting State - A running ec2 instance can be rebooted. The IPv4 , IPv6 and DNS is unchanged once we performed the reboot of ec2 instance

Terminating ec2 instance –an ec2 instance that is in running or stopped state can be deleted or terminated. By default EBS volume is removed. We can enable the ‘termination protection’ to retain the EBS volume post instance termination.There are no charges associated for terminated instance. A terminated ec2 instance can not be recovered.

I hope this topic was useful to shed some light on the ec2 instance lifecycle phases.

Thank you for your time.

Please dont forget to like ,share,comment and subscribe to my YouTube channel 'Cloud With Mohsin'

Happy Learning :)

I will see you all soon in the next topic.Take care. bye