Repeatability
An AMI can be used repeatedly to launch instances with efficiency and precision
An AMI provides the information needed to launch an instance, including:
Repeatability
An AMI can be used repeatedly to launch instances with efficiency and precision
Reusability
Instances launched from the same AMI are identically configured
Recoverability
You can create an AMI from a configured instance as a restorable backup. You can replace a failed instance by launching a new instance from the same AMI
Choose an AMI based on the following characteristics:
Characteristic | Amazon EBS-Backed Instance | Instance Store-Backed Instance |
---|---|---|
Boot time | Boots faster | Takes longer to boot |
Maximum size of root device | 16 TiB | 10 GiB |
Ability to stop the instance | Can stop the instance | Cannot be in a stopped state; instances are running or terminated |
Ability to change instance type | Can change the instance type by stopping instance | Can’t change the instance type because the instance can’t be stopped |
Instance charges | Charged for instance usage, EBS volume usage, and storing AMI as an EBS snapshot | Charged for instance usage and storing AMI in Amazon S3 |
Use case | Persistent storage | Temporary storage |
The lifecycle includes these states:
Important Instance store-backed instances cannot be stopped, only rebooted or terminated.
Process for creating a new AMI:
EC2 Image Builder automates the creation, management, and deployment of up-to-date and compliant golden VM images:
Benefits include creating images with only essential components, reducing security vulnerability exposure, and providing validation testing capabilities before production use.
An AMI provides the information needed to launch an EC2 instance. Benefits of AMIs include repeatability, reusability, and recoverability. For best performance, use an AMI with the HVM virtualization type. Multiple sources are available for obtaining AMIs including Quick Start, Community AMIs, AWS Marketplace, and My AMIs that store AMIs you create.