1 00:00:07,001 --> 00:00:10,668 - Let's talk about the Amazon Machine Image. 2 00:00:12,280 --> 00:00:16,447 So an Amazon Machine Image is where all EC2 instances start. 3 00:00:18,016 --> 00:00:20,899 An Amazon Machine Image is essentially 4 00:00:20,899 --> 00:00:24,883 a bit-for-bit copy of the root volume. 5 00:00:24,883 --> 00:00:27,263 In this particular example the root volume 6 00:00:27,263 --> 00:00:31,269 could be an EBS volume, an Elastic Block Store volume, 7 00:00:31,269 --> 00:00:32,383 or it could be an instance store 8 00:00:32,383 --> 00:00:33,782 and we're gonna talk about 9 00:00:33,782 --> 00:00:36,481 what exactly that means coming up, 10 00:00:36,481 --> 00:00:40,800 but on that root device we have our operating system, 11 00:00:40,800 --> 00:00:43,637 we have whatever applications were installed, 12 00:00:43,637 --> 00:00:47,325 we have users and groups and we have 13 00:00:47,325 --> 00:00:51,957 however things are configured so on and so forth. 14 00:00:51,957 --> 00:00:54,976 If we then create an image from that, 15 00:00:54,976 --> 00:00:58,302 that bit-for-bit copy will contain the operating system, 16 00:00:58,302 --> 00:01:01,813 the applications and all the configurations. 17 00:01:01,813 --> 00:01:05,980 From there, these Amazon Machine Images are stored in S3, 18 00:01:08,699 --> 00:01:11,983 but they're stored in sort of like this admin zone 19 00:01:11,983 --> 00:01:14,638 that we don't have direct access to. 20 00:01:14,638 --> 00:01:18,103 We don't really have direct access to the raw data 21 00:01:18,103 --> 00:01:20,263 that makes up the Amazon Machine Image, 22 00:01:20,263 --> 00:01:24,180 but we do know that those machine images are stored in S3 23 00:01:24,180 --> 00:01:26,518 and we'll talk more about why that's important later 24 00:01:26,518 --> 00:01:28,351 when we cover storage. 25 00:01:29,219 --> 00:01:31,286 From that image, that will allow us 26 00:01:31,286 --> 00:01:34,889 to launch clones of the original machine. 27 00:01:34,889 --> 00:01:39,056 So if we install, let's say we install Linux and Apache 28 00:01:41,097 --> 00:01:44,014 and our application on this machine 29 00:01:44,985 --> 00:01:46,647 and then we want to clone that, 30 00:01:46,647 --> 00:01:49,370 we would first create the machine image 31 00:01:49,370 --> 00:01:53,673 and then use that image to launch an exact copy 32 00:01:53,673 --> 00:01:56,059 of that machine over and over again. 33 00:01:56,059 --> 00:01:59,211 We could launch one clone, we could launch 1,000 clones. 34 00:01:59,211 --> 00:02:00,318 That would be up to us, 35 00:02:00,318 --> 00:02:04,094 but whatever machines are launched from that machine image 36 00:02:04,094 --> 00:02:07,811 will all come out exactly the same. 37 00:02:07,811 --> 00:02:09,608 So again Amazon Machine Images 38 00:02:09,608 --> 00:02:12,918 are where all EC2 instances start. 39 00:02:12,918 --> 00:02:15,955 They are a bit-for-bit copy of the root volume 40 00:02:15,955 --> 00:02:18,115 and when you clone those machines, 41 00:02:18,115 --> 00:02:20,181 they will all have the same OS, 42 00:02:20,181 --> 00:02:21,847 the same applications installed 43 00:02:21,847 --> 00:02:25,430 and will all be configured in the same way.