Leveraging AMIs to Launch Amazon EC2 Instances
AMIs are templates for creating instances that include the necessary operating system, applications, and configurations. When launching an EC2 instance, selecting an appropriate AMI based on your requirements is crucial, as it determines the operating system and any pre-installed software.
An AMI comprises the following:
- One or more Elastic Block Store (discussed later in this chapter) snapshots or a template for the root volume of the instance if you are using an instance-store-backed AMI
- Launch permissions, which grant permissions to AWS accounts that can launch the AMI
- Any block device mappings specifying additional volumes to be attached when launching the instance
Types of AMIs
There are three types of AMIs to choose from:
- AWS-provided AMIs: These are official AMIs provided by AWS, which include various operating systems, such as Amazon Linux, Ubuntu, Windows Server, and more.
- Community AMIs...