Images : EC2

Images : EC2

What are Images?

An Amazon Machine Image (AMI) is the basic unit of deployment in Amazon EC2 and is one of the types of images you can create with Image Builder. An AMI is a pre-configured virtual machine image that contains the operating system (OS) and preinstalled software to deploy EC2 instances.

AMI

An Amazon Machine Image (AMI) is a master image for the creation of virtual servers -- known as EC2 instances -- in the Amazon Web Services (AWS) environment. The machine images are like templates that are configured with an operating system and other software that determine the user's operating environment.

Why do we need AMI?

An AMI stands for Amazon Machine Images. An AMI is a virtual image used to create a virtual machine within an EC2 instance. You can also create multiple instances using a single AMI when you need instances with the same configuration.

Creating an AMI

  1. Select the running Instance of which you want to create the AMI.

  2. Click on the Actions.

  3. Click on the Image and Templates option.

  4. Click on the Create image option.

  5. Configure the settings according to your needs.

  6. Click on Create.

  7. Your AMI will be created.

  8. Go and check it on the Images -> AMI.

Launching Instances using AMI

  1. Right-click on the AMI.

  2. Select the Launch instance from the AMI option.

  3. Give a name to your Instance.

  4. Here, the AMI is already configured.

  5. Launch the Instance.

  6. Your Instance will be created using the AMI.

Copying AMI to another Region

  1. Select the AMI you want to copy.

  2. Click on the Actions.

  3. Select the Copy AMI option.

  4. Give the name to your AMI and set the Region to which you want to copy.

  5. Click on Copy AMI.

  6. Your AMI will be copied to the Region you selected.