The AMI images are like templates, which includes configuration such as Operating System (O/S), other application software and configuration etc. AMI types are categorized according to region, operating system, system architecture (32 or 64 bit) etc. Each AMI includes a template for the root volume where the operating system, your application supporting software, and other configuration files are stored.

There are several AMI images available on AWS Marketplace that you can select from, ranging from AMI's with base operating systems to AMI's with pre configured software applications and configurations. Based on your requirement you can select an AMI from Marketplace or you can also create a custom AMI to suit your needs. For example, if you have an application developed using WordPress, then you can select an AMI that has pre-installed and configured WordPress.

custom AMI

Below steps illustrates on how to create a custom AMI from an EC2 instance, either from a running EC2 instance or stopped instances. One of the advantage creating custom AMI is that, you can install applications and configure it to meet you requirements and then export it as an AMI image, so that next time you can simply provision new EC2 instances from this custom AMI image.

  • Image name: Name for the AMI image.
  • Image description: Description for the AMI image, this is an optional field.
  • No reboot: This option an optional, select this option if you do not want to reboot the EC2 instance during AMI image creation process. Default behaviour is it shuts down the running EC2 instance, takes snapshots of any attached volumes, creates the AMI, then reboots the EC2 instance.
    Note: To ensure data integrity, leave this option unselected. When the instance is shutdown, it is stateless and there won't be any situation where data is in buffer or data moving around.
AWS EC2 Create Image
  • Instance volumes: Under this section, you can select options for root volume such as size (in giga-bytes) and select whether you want to delete this EBS backed volume upon terminating the EC2 instance created using this custom AMI. You can also add additional volumes as needed using the option Add volume.
  • Tags: You can add tags using this option. This is optional, but it helps later in organizing these AWS resources.
AWS EC2 Create Image

Once the AMI image is created, this can be found under Images section on EC2 dashboard.

AWS EC2 Images

You can perform several actions on this AMI image and launch instance from this image directly from here.

AWS EC2 Images

You can also see this AMI under My AMIs when creating a new EC2 instance using launch instance wizard from EC2 dashboard.

AWS EC2 Images