Overview of the EC2 Lifecycle
Understanding the Amazon EC2 lifecycle is crucial for effectively managing and optimizing your instances. The lifecycle consists of several stages, from launching an instance to its eventual termination. This chapter provides an overview of the key stages in the EC2 lifecycle and the actions you can perform at each stage, as depicted in Figure 5.1.
Figure 5.1 – Instance lifecycle
The following table (Table 5.1) provides an overview of EC2 instance states and their descriptions.
Instance state |
Description |
pending |
A startup process for the instance is almost complete. Pending is the initial state of an instance once it is started for the first time or resumed from the paused state. |
running |
The instance is up and functional at this... |