🚀 Day 12: Create an AMI in AWS

What is an AMI in AWS?
An Amazon Machine Image (AMI) is a snapshot of an EC2 instance that includes the operating system, application server, applications, and data. It allows you to launch new instances with the same configuration quickly.
Why Create an AMI?
Backup your instance
Replicate environments
Launch multiple instances from a template
Easily restore if the instance crashes
Prerequisites
An active AWS account
At least one running EC2 instance
Step-by-Step: How to Create an AMI
Step 1: Login to AWS Console
Go to https://console.aws.amazon.com/ and sign in.
Step 2: Navigate to EC2 Dashboard
Click Services → EC2
Go to Instances from the left menu
Step 3: Select Your Instance
- Select the EC2 instance you want to create an AMI from.
Step 4: Create Image
- Click on Actions → Image and templates → Create image
Step 5: Configure AMI Settings
Image name: Give a meaningful name (e.g.,
myapp-server-backup
)No reboot: Check this box only if you don't want the instance to reboot (less consistent snapshot)
Click Create Image.
Step 6: View AMI Creation Progress
Go to Images → AMIs in the left-hand menu
You’ll see the AMI status as “pending” → “available”
Launch New EC2 from AMI
Go to AMIs
Select your AMI
Click Launch
Choose instance type, key pair, security group → Review and launch
thank yoou
Subscribe to my newsletter
Read articles from Sumith S Raikar directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
