An EC2 instance passes through various statuses throughout its life cycle. It all starts with launching an EC2 instance using a specific AMI. The following figure is an illustration of the EC2 instance life cycle:
Figure 5.1: EC2 instance life cycle
When an instance is provisioned, it immediately gets into the pending state. Depending on what instance type you have selected, it is launched on a host computer inside AWS virtualized hardware. The instance is launched using the AMI you choose for provisioning. Once the instance is ready for use, it gets into the running state. At this moment, you can connect to your instance and start using it. AWS starts billing you for each hour that instance is used once it enters the running state.