1 00:00:00,638 --> 00:00:03,251 - [Alana] In the last exercise, you got an EC2 instance 2 00:00:03,251 --> 00:00:06,560 up and running with a CodeDeploy agent installed. 3 00:00:06,560 --> 00:00:08,590 You also created two IAM roles, 4 00:00:08,590 --> 00:00:10,350 one for the CodeDeploy service, 5 00:00:10,350 --> 00:00:13,429 and one for EC2 to communicate with S3. 6 00:00:13,429 --> 00:00:17,030 In this exercise, we take this a step further. 7 00:00:17,030 --> 00:00:18,660 You'll first create the S3 bucket 8 00:00:18,660 --> 00:00:21,110 where you'll upload your application code. 9 00:00:21,110 --> 00:00:24,140 We'll be providing you this code in a .zip file format. 10 00:00:24,140 --> 00:00:26,003 And if you open up the .zip file, 11 00:00:27,090 --> 00:00:29,483 you'll see you have a few different files. 12 00:00:30,680 --> 00:00:32,803 The first is an HTML file, 13 00:00:38,060 --> 00:00:40,410 which contains the application you'll be using, 14 00:00:40,410 --> 00:00:42,690 which, in this case, is just a static site 15 00:00:42,690 --> 00:00:43,913 that looks like a blog. 16 00:00:45,480 --> 00:00:48,750 This index.html file is what you'll be hosting on 17 00:00:48,750 --> 00:00:50,263 your EC2 instance. 18 00:00:51,870 --> 00:00:54,073 We also provide you with an AppSpec file. 19 00:00:56,060 --> 00:00:57,370 CodeDeploy will use this file 20 00:00:57,370 --> 00:00:59,740 to install the application dependencies, 21 00:00:59,740 --> 00:01:01,200 and start and stop the server 22 00:01:01,200 --> 00:01:03,490 using scripts that we've created in the scripts folder 23 00:01:03,490 --> 00:01:04,503 of the .zip file. 24 00:01:07,080 --> 00:01:09,000 Once you have your code uploaded to S3, 25 00:01:09,000 --> 00:01:10,220 you'll set up an application 26 00:01:10,220 --> 00:01:12,680 and a deployment group in CodeDeploy. 27 00:01:12,680 --> 00:01:13,770 You'll then create a deployment 28 00:01:13,770 --> 00:01:16,560 that ships the code to the instance. 29 00:01:16,560 --> 00:01:19,340 After you see that your application works as expected, 30 00:01:19,340 --> 00:01:21,570 you'll change the code in any way you'd like, 31 00:01:21,570 --> 00:01:23,550 whether you change the color of an element, 32 00:01:23,550 --> 00:01:26,150 or the text of the website, or both. 33 00:01:26,150 --> 00:01:28,340 And then, you'll create another deployment 34 00:01:28,340 --> 00:01:31,399 shipping out these revisions to your EC2 instance. 35 00:01:31,399 --> 00:01:33,050 You'll confirm the changes were made 36 00:01:33,050 --> 00:01:34,510 by viewing them on the instance, 37 00:01:34,510 --> 00:01:36,940 and then you'll be done with the lab. 38 00:01:36,940 --> 00:01:38,700 Remember, if you have any questions, 39 00:01:38,700 --> 00:01:40,100 you can seek help from one another 40 00:01:40,100 --> 00:01:41,440 or from the instructors 41 00:01:41,440 --> 00:01:43,730 in the forums or discussion groups. 42 00:01:43,730 --> 00:01:44,623 Happy learning!