๐ผ๏ธ 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:
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 |