1 00:00:06,610 --> 00:00:08,490 - Now let's review an introduction to 2 00:00:08,490 --> 00:00:11,820 Amazon Elastic Compute Cloud, or EC2. 3 00:00:11,820 --> 00:00:16,430 With EC2, we have the ability to create virtual machines. 4 00:00:16,430 --> 00:00:18,500 We call them instances, 5 00:00:18,500 --> 00:00:22,490 and we have our choice of Linux or Windows, 6 00:00:22,490 --> 00:00:25,003 very many flavors of either one. 7 00:00:26,150 --> 00:00:28,440 Of course, these are powered by either the 8 00:00:28,440 --> 00:00:31,010 Xen or Nitro hypervisor. 9 00:00:31,010 --> 00:00:35,520 Up until recently, Xen was the hypervisor for everything, 10 00:00:35,520 --> 00:00:40,110 but with some of the later generations of EC2 families, 11 00:00:40,110 --> 00:00:44,060 such as the C5 series, M5, R5 series. 12 00:00:44,060 --> 00:00:47,440 Some of these are now using the Nitro hypervisor, 13 00:00:47,440 --> 00:00:51,010 which is more heavily borrowed from KVM, 14 00:00:51,010 --> 00:00:53,980 and moving away from the Xen hypervisor. 15 00:00:53,980 --> 00:00:56,410 The benefit of the Nitro hypervisor 16 00:00:56,410 --> 00:01:00,660 is that it gives us very close to bare metal performance. 17 00:01:00,660 --> 00:01:05,010 The overhead of the virtualization is very, very low 18 00:01:05,010 --> 00:01:07,863 compared to that with Xen or other hypervisor's. 19 00:01:10,350 --> 00:01:12,120 Bare metal is also available. 20 00:01:12,120 --> 00:01:15,270 So, if you have workloads that could benefit 21 00:01:15,270 --> 00:01:17,880 from having access to bare metal, 22 00:01:17,880 --> 00:01:20,290 without the overhead of a hypervisor, 23 00:01:20,290 --> 00:01:21,643 that is an option. 24 00:01:23,230 --> 00:01:28,180 Generally, when we choose instances within EC2, 25 00:01:28,180 --> 00:01:29,630 we don't really get to say, 26 00:01:29,630 --> 00:01:33,360 well, I want this much CPU and this much memory. 27 00:01:33,360 --> 00:01:36,470 We choose from sort of a price fixed menu, 28 00:01:36,470 --> 00:01:39,110 and we do our best to choose 29 00:01:39,110 --> 00:01:42,400 a machine that gives us a certain 30 00:01:42,400 --> 00:01:45,950 blend of CPU, memory, network IO, and so on, 31 00:01:45,950 --> 00:01:49,240 that will match that particular workload. 32 00:01:49,240 --> 00:01:52,690 Of course, the beautiful thing about EC2 is that, 33 00:01:52,690 --> 00:01:55,160 as we talk about in the very beginning, 34 00:01:55,160 --> 00:01:58,680 the on demand nature of EC2, 35 00:01:58,680 --> 00:02:00,930 and the lack of long-term commitments, 36 00:02:00,930 --> 00:02:02,570 the pay as you go pricing, 37 00:02:02,570 --> 00:02:04,930 allows us to change our minds, right? 38 00:02:04,930 --> 00:02:07,580 That's one of the big benefits of cloud computing, 39 00:02:07,580 --> 00:02:10,840 is that, we are not locked in to our decisions 40 00:02:10,840 --> 00:02:12,040 for a long period of time. 41 00:02:12,040 --> 00:02:14,770 So, if we try one of these instances, 42 00:02:14,770 --> 00:02:17,270 and we find that after monitoring 43 00:02:17,270 --> 00:02:18,960 our application for awhile, 44 00:02:18,960 --> 00:02:23,470 we find that, that particular combination of CPU and memory 45 00:02:23,470 --> 00:02:24,970 doesn't really work that well. 46 00:02:24,970 --> 00:02:26,620 That perhaps we need more CPU, 47 00:02:26,620 --> 00:02:28,160 or we need more memory. 48 00:02:28,160 --> 00:02:30,160 We can throw that machine away, 49 00:02:30,160 --> 00:02:32,570 and create a new one very easily. 50 00:02:32,570 --> 00:02:34,560 That really, right there, 51 00:02:34,560 --> 00:02:35,860 that ability 52 00:02:37,690 --> 00:02:40,420 gives us a level of flexibility and agility 53 00:02:40,420 --> 00:02:41,913 that we've never had before. 54 00:02:43,213 --> 00:02:45,310 That concept, that ability 55 00:02:45,310 --> 00:02:47,560 is really the number one driver for 56 00:02:47,560 --> 00:02:49,780 enterprise adoption of AWS. 57 00:02:49,780 --> 00:02:51,303 Even above cost savings, 58 00:02:51,303 --> 00:02:52,490 because we, 59 00:02:52,490 --> 00:02:53,940 through these kind of things, 60 00:02:53,940 --> 00:02:55,630 we have access to technology, 61 00:02:55,630 --> 00:02:57,410 and a way of doing things, 62 00:02:57,410 --> 00:02:59,720 a way of approaching our infrastructure, 63 00:02:59,720 --> 00:03:01,233 that we've never had before. 64 00:03:02,150 --> 00:03:03,600 So, 65 00:03:03,600 --> 00:03:04,770 with EC2 66 00:03:05,860 --> 00:03:07,820 we also have the ability 67 00:03:07,820 --> 00:03:10,890 to launch virtually any number of instances. 68 00:03:10,890 --> 00:03:13,040 We can launch one, we can launch a thousand. 69 00:03:13,040 --> 00:03:15,870 Of course, within our current account limit. 70 00:03:15,870 --> 00:03:19,360 Remember that Amazon services have 71 00:03:19,360 --> 00:03:22,250 sometimes hard limits, and sometimes soft limits, 72 00:03:22,250 --> 00:03:26,360 and the initial soft limit for EC2 instances 73 00:03:26,360 --> 00:03:29,240 is somewhere around 20 instances. 74 00:03:29,240 --> 00:03:31,150 At least at the time of this video. 75 00:03:31,150 --> 00:03:33,940 So, if you need a thousand instances, 76 00:03:33,940 --> 00:03:37,670 you can get that by submitting a ticket to AWS support, 77 00:03:37,670 --> 00:03:40,283 and asking for an increase in that limit. 78 00:03:41,730 --> 00:03:43,660 There are different billing models 79 00:03:43,660 --> 00:03:47,130 we are going to go into in detail here momentarily. 80 00:03:47,130 --> 00:03:49,180 Depending on the operating system, 81 00:03:49,180 --> 00:03:53,510 most operating systems like Windows and Red Hat and so on, 82 00:03:53,510 --> 00:03:55,523 will charge by the hour. 83 00:03:56,420 --> 00:04:00,430 So, the hourly fee in those cases will include 84 00:04:00,430 --> 00:04:03,720 the license for the operating system. 85 00:04:03,720 --> 00:04:07,310 So, if you were to compare something like Fedora 86 00:04:08,180 --> 00:04:11,470 with Red Hat, you would see that the same instance would 87 00:04:11,470 --> 00:04:16,060 cost more with Red Hat or Windows than it would with Fedora, 88 00:04:16,060 --> 00:04:18,610 simply because the hourly fee includes 89 00:04:18,610 --> 00:04:20,780 a license for the operating system. 90 00:04:20,780 --> 00:04:24,120 Now, at least at the time of this video, 91 00:04:24,120 --> 00:04:27,540 for Amazon, Linux, and Ubuntu, 92 00:04:27,540 --> 00:04:30,609 we actually have per second billing. 93 00:04:30,609 --> 00:04:31,950 All right? 94 00:04:31,950 --> 00:04:34,020 So, again, per second billing 95 00:04:34,020 --> 00:04:37,330 is available for certain operating systems. 96 00:04:37,330 --> 00:04:40,803 Not every operating system qualifies for per second billing. 97 00:04:41,680 --> 00:04:45,780 Either way, if you're using an hourly billing model, 98 00:04:45,780 --> 00:04:48,060 then it's billed hour forward. 99 00:04:48,060 --> 00:04:49,080 So, what that means is, 100 00:04:49,080 --> 00:04:50,850 if you run a machine for five minutes, 101 00:04:50,850 --> 00:04:52,400 you pay for the whole hour. 102 00:04:52,400 --> 00:04:54,540 If you run it for 61 minutes, 103 00:04:54,540 --> 00:04:56,330 you pay for two hours. 104 00:04:56,330 --> 00:04:58,160 With the per second fee, 105 00:04:58,160 --> 00:05:01,200 it's essentially rounded up to the next second, 106 00:05:01,200 --> 00:05:03,990 but there's always a 60 second minimum 107 00:05:03,990 --> 00:05:05,510 that you have to pay for. 108 00:05:05,510 --> 00:05:07,760 We also have the AWS marketplace, 109 00:05:07,760 --> 00:05:10,740 which offers what we might call, canned solutions. 110 00:05:10,740 --> 00:05:13,860 So, if you're looking for a particular type of software, 111 00:05:13,860 --> 00:05:17,055 say a virtual networking device, 112 00:05:17,055 --> 00:05:19,030 like some type of a 113 00:05:20,090 --> 00:05:23,150 virtual Cisco, or a virtual Palo Alto device, 114 00:05:23,150 --> 00:05:25,840 or perhaps some type of big data solution. 115 00:05:25,840 --> 00:05:29,530 There's a lot of different solutions available 116 00:05:29,530 --> 00:05:33,880 that are already packaged as a machine image, 117 00:05:33,880 --> 00:05:36,760 and already available for us to choose. 118 00:05:36,760 --> 00:05:40,670 In those cases, the hourly cost of the machine 119 00:05:40,670 --> 00:05:43,540 also includes a license for that 120 00:05:43,540 --> 00:05:45,730 particular piece of software. 121 00:05:45,730 --> 00:05:48,070 So, the take away from this lesson is that, 122 00:05:48,070 --> 00:05:51,860 with EC2 we gain access to 123 00:05:51,860 --> 00:05:54,510 either virtual machines or bare metal. 124 00:05:54,510 --> 00:05:56,720 We have the ability to launch one machine 125 00:05:56,720 --> 00:05:59,100 or a thousand machines or more. 126 00:05:59,100 --> 00:06:00,500 We have a lot of flexibility 127 00:06:00,500 --> 00:06:03,020 in terms of operating systems to use, 128 00:06:03,020 --> 00:06:06,000 and the different billing models that we'll use. 129 00:06:06,000 --> 00:06:08,520 Of course, throughout this lesson we will take a 130 00:06:08,520 --> 00:06:12,120 closer look at a lot of details regarding EC2, 131 00:06:12,120 --> 00:06:16,253 and how we might deploy applications to those instances.