What are the different EC2 instance states in AWS, and what does each state represent?
- Pending – The instance is being launched.
- Running – The instance is active and available for use.
- Stopping – The instance is in the process of shutting down.
- Stopped – The instance is powered off but can be started again.
- Shutting-down – The instance is being terminated.
- Terminated – The instance has been permanently deleted and cannot be restarted.