๐Ÿ–ผ๏ธ What is Amazon AMI?

ย 

๐Ÿ–ผ๏ธ What is Amazon AMI?

An Amazon Machine Image (AMI) is a preconfigured template used to launch EC2 instances in AWS.

โœ… Think of it as a blueprint that includes the OS, software, configuration, and permissions needed to start a server.


๐Ÿ“ฆ What's Included in an AMI?

Component Description
โœ… Operating System Linux, Windows, etc.
โœ… Application server Apache, NGINX, Tomcat, etc.
โœ… Installed software Databases, utilities, language runtimes
โœ… Custom configuration Scripts, environment variables, startup configs
โœ… EBS snapshot(s) For the root and additional volumes
โœ… Launch permissions Public, private, or shared access

๐Ÿ”„ How AMIs Are Used

  • Choose or create an AMI
  • Launch EC2 instance using that AMI
  • AWS provisions your instance with exact specs from the image

๐Ÿงช Creating Your Own AMI

From an existing EC2 instance:

aws ec2 create-image \
ย  --instance-id i-12345678 \
ย  --name "MyCustomAMI" \
ย  --no-reboot

You can also create AMIs from snapshots or via the AWS Console.


๐Ÿงฐ Types of AMIs

Type Description
AWS-provided Official OS images (Amazon Linux, Ubuntu, Windows, etc.)
Marketplace AMIs Pre-built solutions from third-party vendors (e.g., WordPress, SAP)
Custom AMIs Your own images with your environment, software, and configs

๐Ÿ” AMI Permissions

Scope Who Can Launch It?
Private Only your AWS account
Shared Specific AWS accounts
Public Anyone on AWS

๐Ÿ“Š AMI vs EBS Snapshot

Feature AMI EBS Snapshot
Purpose Full EC2 image template Backup of a single EBS volume
Contains OS? โœ… Yes โŒ No
Launch EC2? โœ… Directly usable for EC2 โŒ Not directly, needs AMI creation
Format Bundle of config + snapshots Volume data only

โœ… Summary

Property Value
Full template? โœ… Yes
Launch EC2? โœ… Yes
Customizable? โœ… Fully (via EC2 customization)
Billing No cost for AMI itself, but EC2 + storage costs apply
Security IAM + sharing settings
Back to blog

Leave a comment