What is the difference between snapshot and ami in AWS

90    Asked by ChrisEVANS in Python , Asked on Sep 25, 2024

I am not able to understand properly what is the difference between a snapshot and AMI, as far as I know, a snapshot is a backup of the disk drive, while on the other hand, AMI is a backup of the entire instance, since the complete system is stored on the disk drive, so I am a bit unclear about the thing or am I missing something?

Answered by Chris Dyer

The difference between a snapshot and an ami is that a snapshot is a point-in-time backup of an EBS volume, while an AMI is an absolute image that includes OS, associated configuration settings, and Application server, it is used to launch new instances.


We need to understand what are two types of AMIs (Amazon Machine Images)

1. Instance-Store AMIs: these are rare, and generally speaking I don’t recommend them for beginners, it is a copy of the root instance-store volume in addition to some metadata, all of it is saved in an S3 bucket with a special format.

2. EBS Boot AMIs: it contains an EBS snapshot of root volume as well as metadata like architecture, AMI name, block device mappings, and Kernal. Most probably you’re using this methodology.

By using correct metadata, with the correct AKI ID (also ensure that it boots properly) by registering with EBS snapshot you can create EBS boot AMI.



Your Answer

Interviews

Parent Categories