1 00:00:00,340 --> 00:00:03,370 ‫So, we have the EB CLI available to us, 2 00:00:03,370 --> 00:00:05,220 ‫but there is an additional CLI called, 3 00:00:05,220 --> 00:00:07,080 ‫the "Elastic Beanstalk CLI," 4 00:00:07,080 --> 00:00:10,980 ‫which makes working with Beanstalk from the CLI much easier. 5 00:00:10,980 --> 00:00:12,220 ‫And there's a bunch of commands 6 00:00:12,220 --> 00:00:14,050 ‫such as eb create, eb status, 7 00:00:14,050 --> 00:00:16,040 ‫health, events, logs, open, 8 00:00:16,040 --> 00:00:18,050 ‫deploy, config, terminate, 9 00:00:18,050 --> 00:00:20,300 ‫and all these commands and more 10 00:00:20,300 --> 00:00:22,180 ‫can help you reproduce what we've been doing 11 00:00:22,180 --> 00:00:24,430 ‫from the Elastic Beanstalk console, 12 00:00:24,430 --> 00:00:26,760 ‫but with a command line interface. 13 00:00:26,760 --> 00:00:28,850 ‫Now, it's helpful to use the EB CLI 14 00:00:28,850 --> 00:00:31,200 ‫when you want to automate your development pipelines. 15 00:00:31,200 --> 00:00:33,010 ‫It is not necessary to know these commands 16 00:00:33,010 --> 00:00:34,770 ‫going into the developer exam. 17 00:00:34,770 --> 00:00:36,180 ‫It is more necessary to know them 18 00:00:36,180 --> 00:00:37,720 ‫when you go into the DevOps exam. 19 00:00:37,720 --> 00:00:39,810 ‫So, I deal with those in my DevOps exam. 20 00:00:39,810 --> 00:00:42,480 ‫So there will be no hands on on the EB CLI, 21 00:00:42,480 --> 00:00:43,750 ‫but just you know, 22 00:00:43,750 --> 00:00:45,980 ‫the EB CLI does exist and helps you 23 00:00:45,980 --> 00:00:48,990 ‫speed up your efficiency when using the CLI 24 00:00:48,990 --> 00:00:51,040 ‫against Elastic Beanstalk. 25 00:00:51,040 --> 00:00:52,700 ‫Now, this Elastic Beanstalk CLI 26 00:00:52,700 --> 00:00:55,240 ‫helps you with deploying your Beanstalk application. 27 00:00:55,240 --> 00:00:58,280 ‫So, regardless, to deploy a Beanstalk application, 28 00:00:58,280 --> 00:00:59,780 ‫you need to describe your dependencies. 29 00:00:59,780 --> 00:01:01,000 ‫So for example, you need to create 30 00:01:01,000 --> 00:01:03,870 ‫a requirements.txt for Python 31 00:01:03,870 --> 00:01:06,620 ‫or you create a package.json for Node.js. 32 00:01:06,620 --> 00:01:09,230 ‫Then you package all your code as a zip 33 00:01:09,230 --> 00:01:11,630 ‫and you described your dependencies in that file. 34 00:01:11,630 --> 00:01:13,710 ‫So as we said, these two files. 35 00:01:13,710 --> 00:01:16,770 ‫Then you upload the zip file into Beanstalk. 36 00:01:16,770 --> 00:01:18,510 ‫This will create a new app version 37 00:01:18,510 --> 00:01:20,320 ‫and then when the app version is uploaded, 38 00:01:20,320 --> 00:01:23,240 ‫we can deploy it using the console or using the CLI. 39 00:01:23,240 --> 00:01:25,390 ‫We can do the exact same thing with the EB CLI, 40 00:01:25,390 --> 00:01:26,920 ‫it will create a zip file, 41 00:01:26,920 --> 00:01:29,440 ‫upload that zip and deploy it. 42 00:01:29,440 --> 00:01:32,040 ‫That zip, by the way, when you upload it onto Beanstalk, 43 00:01:32,040 --> 00:01:35,050 ‫it actually gets uploaded onto Amazon history, 44 00:01:35,050 --> 00:01:37,570 ‫and then refers the Amazon is free bundle 45 00:01:37,570 --> 00:01:40,300 ‫from the Beanstalk interface. 46 00:01:40,300 --> 00:01:42,320 ‫Okay, so then once this is done, 47 00:01:42,320 --> 00:01:44,500 ‫Beanstalk will take these zips 48 00:01:44,500 --> 00:01:47,310 ‫and will deploy them onto each EC2 instances, 49 00:01:47,310 --> 00:01:50,030 ‫they will resolve the dependencies from the requirements, 50 00:01:50,030 --> 00:01:53,350 ‫the Python or the package of json for Node.js, 51 00:01:53,350 --> 00:01:55,160 ‫and then the application will start. 52 00:01:55,160 --> 00:01:56,420 ‫This is the theory lectures that should 53 00:01:56,420 --> 00:01:59,220 ‫explain you the backend process of how Beanstalk works. 54 00:01:59,220 --> 00:02:02,040 ‫If you want to replay, try to go on the documentation 55 00:02:02,040 --> 00:02:04,000 ‫website and install the EB CLI. 56 00:02:04,000 --> 00:02:06,050 ‫But just so you know, this is out of scope of the exam 57 00:02:06,050 --> 00:02:07,140 ‫and out of scope for this course 58 00:02:07,140 --> 00:02:09,340 ‫so I don't want to tell you with so many details, 59 00:02:09,340 --> 00:02:11,740 ‫just know that it exists and hopefully that was helpful. 60 00:02:11,740 --> 00:02:13,490 ‫I will see you in the next lecture.