1 00:00:00,373 --> 00:00:01,710 - So let's have a look at 2 00:00:01,710 --> 00:00:03,480 Amazon Elastic Beanstalk. 3 00:00:03,480 --> 00:00:05,010 And this is just an introduction 4 00:00:05,010 --> 00:00:06,840 in the Solutions Architect course, 5 00:00:06,840 --> 00:00:08,760 if you really wanna go deep dive on it, 6 00:00:08,760 --> 00:00:10,719 this is something that is treated very heavily 7 00:00:10,719 --> 00:00:12,960 at the developer exam. 8 00:00:12,960 --> 00:00:14,310 But right now this is just an overview, 9 00:00:14,310 --> 00:00:16,170 just to show you how it works. 10 00:00:16,170 --> 00:00:19,500 So let's create an Amazon Elastic Beanstalk application. 11 00:00:19,500 --> 00:00:21,600 I'll call this one demo Beanstalk. 12 00:00:21,600 --> 00:00:22,710 Scroll down. 13 00:00:22,710 --> 00:00:23,837 Then we have to choose a platform. 14 00:00:23,837 --> 00:00:26,250 So you can see Beanstalk can run many different things 15 00:00:26,250 --> 00:00:29,280 from Docker to some programming languages and so on. 16 00:00:29,280 --> 00:00:32,369 And to keep things simple, I'm going to use Node.js. 17 00:00:32,369 --> 00:00:33,870 You can use whatever default are there. 18 00:00:33,870 --> 00:00:36,990 They will change over time, but just keep them as default. 19 00:00:36,990 --> 00:00:39,270 Then we could upload our own code, but we don't have that. 20 00:00:39,270 --> 00:00:42,870 So let's just go ahead and deploy a sample application. 21 00:00:42,870 --> 00:00:44,220 But before we create this application 22 00:00:44,220 --> 00:00:45,450 I wanna show you the kind 23 00:00:45,450 --> 00:00:49,020 of options that are offered by Elastic Beanstalk. 24 00:00:49,020 --> 00:00:50,400 So when you click on this, 25 00:00:50,400 --> 00:00:53,250 you have a list at all the configurations possible. 26 00:00:53,250 --> 00:00:54,630 And you have configuration presets, 27 00:00:54,630 --> 00:00:56,130 for example, single instance, 28 00:00:56,130 --> 00:00:57,840 that is going to be Free Tier eligible, 29 00:00:57,840 --> 00:01:00,120 or single instance, using a Spot Instance, 30 00:01:00,120 --> 00:01:02,910 or high availability or high availability with Spot 31 00:01:02,910 --> 00:01:06,360 and On-Demand instances or any type of custom configuration. 32 00:01:06,360 --> 00:01:07,920 So we'll remain within the Free Tier. 33 00:01:07,920 --> 00:01:08,753 So we'll choose that, 34 00:01:08,753 --> 00:01:10,950 but let's have a look at what the options are. 35 00:01:10,950 --> 00:01:13,170 So the platform we just chose from before. 36 00:01:13,170 --> 00:01:14,970 Then we can enable some kind of software 37 00:01:14,970 --> 00:01:16,200 on top of Beanstalk. 38 00:01:16,200 --> 00:01:18,420 We can choose whatever instances that we want, 39 00:01:18,420 --> 00:01:21,540 customize them in terms of storage and so on. 40 00:01:21,540 --> 00:01:22,373 The capacity. 41 00:01:22,373 --> 00:01:25,290 So if we want to have, and I will show you this right now, 42 00:01:25,290 --> 00:01:28,530 if we want to have one or multiple EC2 instances 43 00:01:28,530 --> 00:01:30,780 if they're load balanced or not, if they're 44 00:01:30,780 --> 00:01:32,010 in Auto Scaling group, 45 00:01:32,010 --> 00:01:34,050 if you want on demand or spot instances. 46 00:01:34,050 --> 00:01:36,570 So you can see, you can customize a lot of things. 47 00:01:36,570 --> 00:01:38,850 The instance types that we want to allow for this, 48 00:01:38,850 --> 00:01:41,790 so t2.micro, t2.small, the AMI, 49 00:01:41,790 --> 00:01:42,990 the triggers for Auto Scaling. 50 00:01:42,990 --> 00:01:45,600 So as you can see, Beanstalk is kind of like a summary 51 00:01:45,600 --> 00:01:48,660 of everything that we've learned so far, right? 52 00:01:48,660 --> 00:01:52,050 Load balancer, if you have one, then how do you do updates? 53 00:01:52,050 --> 00:01:54,450 What security you have, the monitoring, 54 00:01:54,450 --> 00:01:57,540 the managed updates notifications, network configuration 55 00:01:57,540 --> 00:01:59,580 and if you wanna add a database. 56 00:01:59,580 --> 00:02:01,470 So all these settings you do not have to know, 57 00:02:01,470 --> 00:02:04,140 but what I wanna show you is that using Elastic Beanstalk, 58 00:02:04,140 --> 00:02:06,270 all we had to do and to choose was, 59 00:02:06,270 --> 00:02:08,280 'Hey, what platform do we want?'. 60 00:02:08,280 --> 00:02:10,590 Let's upload our application code. 61 00:02:10,590 --> 00:02:12,900 And all of a sudden we'll have a fully 62 00:02:12,900 --> 00:02:15,900 managed platform that encompasses a lot of the features 63 00:02:15,900 --> 00:02:19,170 we need to run this application without us specifically 64 00:02:19,170 --> 00:02:20,940 knowing about EC2 instances, 65 00:02:20,940 --> 00:02:22,530 load balancers, auto scaling groups 66 00:02:22,530 --> 00:02:25,230 and configuring them independently. 67 00:02:25,230 --> 00:02:28,230 So let's go ahead and just create this sample application. 68 00:02:28,230 --> 00:02:31,080 Right now with the default settings, which is the Free Tier. 69 00:02:31,080 --> 00:02:32,670 So once you do this, it's going to actually 70 00:02:32,670 --> 00:02:36,060 create a Beanstalk environment. 71 00:02:36,060 --> 00:02:37,770 And this can take a while. 72 00:02:37,770 --> 00:02:40,200 And behind the scenes, there's a service that will have 73 00:02:40,200 --> 00:02:42,870 a look very quickly at well, at it in the course 74 00:02:42,870 --> 00:02:44,400 which is CloudFormation. 75 00:02:44,400 --> 00:02:46,230 And so if you go to CloudFormation, 76 00:02:46,230 --> 00:02:47,970 in here you will find a stack. 77 00:02:47,970 --> 00:02:49,530 And this is this stack right here, 78 00:02:49,530 --> 00:02:51,510 and this is going to actually create 79 00:02:51,510 --> 00:02:53,280 all the infrastructure needed 80 00:02:53,280 --> 00:02:55,950 for our Elastic Beanstalk application. 81 00:02:55,950 --> 00:02:57,180 So this is something that's really 82 00:02:57,180 --> 00:02:59,490 out of scope in terms of understanding how that works, 83 00:02:59,490 --> 00:03:02,850 but just so you know, Beanstalk behind the scenes leverages 84 00:03:02,850 --> 00:03:05,880 CloudFormation to deploy your application. 85 00:03:05,880 --> 00:03:07,500 So I'm going to close this 86 00:03:07,500 --> 00:03:09,750 and all the feedback is coming from here. 87 00:03:09,750 --> 00:03:11,700 So now we have to wait five minutes 88 00:03:11,700 --> 00:03:13,550 until everything is gonna be created. 89 00:03:14,400 --> 00:03:17,280 And as you can see this created a security group, 90 00:03:17,280 --> 00:03:18,864 this created an Elastic IP because we are using 91 00:03:18,864 --> 00:03:22,080 a single instance right now, deployment. 92 00:03:22,080 --> 00:03:24,240 If you did change some configuration 93 00:03:24,240 --> 00:03:25,620 and not use a single instance, 94 00:03:25,620 --> 00:03:27,600 you will see an auto-scaling group 95 00:03:27,600 --> 00:03:29,403 and a load balancer in here. 96 00:03:30,720 --> 00:03:33,630 So now I get the feedback that the application 97 00:03:33,630 --> 00:03:36,870 is successfully launched and using this URL right here, 98 00:03:36,870 --> 00:03:37,703 by clicking on it, 99 00:03:37,703 --> 00:03:40,500 I can get access to this congratulations page 100 00:03:40,500 --> 00:03:42,720 which represents the fact that my Node.js 101 00:03:42,720 --> 00:03:45,360 application has been deployed on Elastic Beanstalk 102 00:03:45,360 --> 00:03:46,770 and this is the result of it. 103 00:03:46,770 --> 00:03:50,490 I can access it using a URL, which is really cool. 104 00:03:50,490 --> 00:03:52,810 And if I just go into the EC2 console 105 00:03:52,810 --> 00:03:55,200 to see what has been created, 106 00:03:55,200 --> 00:03:56,940 So I can go in here, I can see 107 00:03:56,940 --> 00:04:00,660 that one instance is running, and this is this one. 108 00:04:00,660 --> 00:04:01,710 And if I click on it 109 00:04:01,710 --> 00:04:04,230 as you can see, my instance is running. 110 00:04:04,230 --> 00:04:06,870 It has a public IPv4 address. 111 00:04:06,870 --> 00:04:10,050 And that address is if we have a look 112 00:04:10,050 --> 00:04:13,980 on the left hand side, it's an Elastic IP right here. 113 00:04:13,980 --> 00:04:17,100 So this is because I'm running in the single instance mode. 114 00:04:17,100 --> 00:04:18,450 So that's why we have an Elastic IP. 115 00:04:18,450 --> 00:04:20,370 But if you are not running in signal instance mode 116 00:04:20,370 --> 00:04:22,140 you will not see this. 117 00:04:22,140 --> 00:04:24,450 And then if we go into security groups 118 00:04:24,450 --> 00:04:26,575 we will find a security group just 119 00:04:26,575 --> 00:04:28,920 for my Beanstalk environment right here. 120 00:04:28,920 --> 00:04:31,380 So this is just for my instance that has been created. 121 00:04:31,380 --> 00:04:33,437 And if I go into Auto Scaling group, we can see 122 00:04:33,437 --> 00:04:37,230 that a Auto Scaling group is managing my EC2 instance 123 00:04:37,230 --> 00:04:39,210 on Elastic Beanstalk, okay? 124 00:04:39,210 --> 00:04:41,550 So that's it, that's just a very short introduction 125 00:04:41,550 --> 00:04:42,960 into Elastic Beanstalk. 126 00:04:42,960 --> 00:04:45,630 When you're done, you go to applications 127 00:04:45,630 --> 00:04:49,410 you take this one, action, and then delete application. 128 00:04:49,410 --> 00:04:52,920 You copy the name and delete it and you're done. 129 00:04:52,920 --> 00:04:55,050 So, yeah, that's it for this lecture. 130 00:04:55,050 --> 00:04:55,980 I hope you liked it. 131 00:04:55,980 --> 00:04:57,963 And I will see you in the next lecture.