Creating and Using Amazon Machine Images (AMI) in AWS EC2

In this lesson, we practiced creating an AMI (Amazon Machine Image) from an EC2 instance to speed up future deployments by pre-installing software. Below is a structured guide covering the key steps.


1. Launching an EC2 Instance

  1. Choose an OS:
  2. Instance Type:
  3. Key Pair:
  4. Network Settings:
  5. Storage and Advanced Details:
  6. Launch the Instance.

2. Verifying Apache Installation


3. Creating an AMI from the Instance

  1. Right-click on the running EC2 instance.
  2. Select Image and Templates → Create Image.
  3. Name the image (e.g., demo image).
  4. Leave default settings and click Create Image.