Vatsal Rahul
Vatsal Rahul

Reputation: 367

what is the difference between Amazon AMI and EBS snapshot?

I have to create either an Amazon EBS snapshot or an AMI from an instance to keep backup of those instances before terminating them. I have some questions related to this which I am not able to figure out:

  1. If we create an AMI or EBS snapshot of the instance, will the Docker and EC2 logs be available?
  2. Creating an instance from the AMI and Snapshot both to make sure #1 is identical to the original instance for the logs present?
  3. Which one is cost effective?
  4. If we create an AMI of a reduced size of an instance, what is the downside of it, which information/data is lost needs to be tested?

Upvotes: 0

Views: 158

Answers (2)

John Rotenstein
John Rotenstein

Reputation: 270224

If you want to be able to boot and use the instance again in future, then an AMI is required.

AMIs and Snapshots are not particularly expensive because they only contain blocks that have been added/modified from the original AMI. It does not store empty blocks.

The AMI and Snapshots will contain an exact copy of the disks at the time that they AMI/snapshot was made. No data will be lost.

Upvotes: 1

Mark B
Mark B

Reputation: 201068

An AMI is an EBS snapshot plus a little information about the EC2 instance it was created from.

If an instance has more than one EBS volume attached, then an AMI would tie together all the snapshots of all the volumes into a single entity.

An AMI is much quicker and easier to create a new EC2 instance from.

Cost wise, I believe they cost the same, since you are only charged for the storage space used.

Upvotes: 0

Related Questions