1 00:00:00,300 --> 00:00:03,750 ‫So, let's go into the Route 53 console. 2 00:00:03,750 --> 00:00:05,970 ‫And to get started with Amazon Route 53, 3 00:00:05,970 --> 00:00:07,740 ‫you need to register a domain. 4 00:00:07,740 --> 00:00:09,600 ‫So on the left-hand side, click on Registered domains, 5 00:00:09,600 --> 00:00:11,340 ‫but this will cost you money. 6 00:00:11,340 --> 00:00:14,250 ‫So if you don't wanna do it, then just watch me do. 7 00:00:14,250 --> 00:00:15,780 ‫I'm going to register a domain. 8 00:00:15,780 --> 00:00:20,780 ‫And I have to choose a domain name so, stephane-ccp.com. 9 00:00:21,030 --> 00:00:22,503 ‫Let's see if someone took it. 10 00:00:24,060 --> 00:00:25,740 ‫And no one took it, it's available for me, 11 00:00:25,740 --> 00:00:27,870 ‫so I'm going to buy it for 12 dollars a year. 12 00:00:27,870 --> 00:00:31,260 ‫I'll add it to my cart and then I will click on continue. 13 00:00:31,260 --> 00:00:33,420 ‫Then, I have to register my information, 14 00:00:33,420 --> 00:00:35,370 ‫so I'll just do that offline. 15 00:00:35,370 --> 00:00:37,320 ‫And then, my order is completed 16 00:00:37,320 --> 00:00:39,930 ‫and it will take a bit of time to get processed. 17 00:00:39,930 --> 00:00:41,580 ‫So for this, I can go to my domains 18 00:00:41,580 --> 00:00:44,820 ‫and I can see the domain registration is in progress. 19 00:00:44,820 --> 00:00:47,100 ‫So after a while, maybe ten, fifteen minutes, 20 00:00:47,100 --> 00:00:49,860 ‫you will see your domain, stephane-ccp.com 21 00:00:49,860 --> 00:00:52,350 ‫and you will see its expiration date and so on. 22 00:00:52,350 --> 00:00:54,000 ‫So once you have done this, 23 00:00:54,000 --> 00:00:57,390 ‫you go into the left-hand side into Hosted zones. 24 00:00:57,390 --> 00:00:59,460 ‫And the hosted zones, you will have one created, 25 00:00:59,460 --> 00:01:01,290 ‫which is stephane-ccp.com. 26 00:01:01,290 --> 00:01:04,170 ‫And, this is where we're going to place our DNS records. 27 00:01:04,170 --> 00:01:06,722 ‫And currently we should only have two DNS records, 28 00:01:06,722 --> 00:01:08,970 ‫but we're going to create EC2 instances 29 00:01:08,970 --> 00:01:12,210 ‫and then, DNS records to point to them. 30 00:01:12,210 --> 00:01:15,150 ‫So, let's go ahead and create EC2 instances. 31 00:01:15,150 --> 00:01:17,130 ‫So, I'm gonna go into the EC2 console 32 00:01:17,130 --> 00:01:18,270 ‫in the region I'm in right now, 33 00:01:18,270 --> 00:01:22,860 ‫which is going to be the Ireland region, right here. 34 00:01:22,860 --> 00:01:25,080 ‫And I'm going to create our first EC2 instance 35 00:01:25,080 --> 00:01:27,810 ‫that's going to say, hello from whatever the region. 36 00:01:27,810 --> 00:01:30,690 ‫So I will launch the instance 37 00:01:30,690 --> 00:01:32,610 ‫and then, I will just scroll down 38 00:01:32,610 --> 00:01:34,620 ‫where I'm going to be a little bit quicker on this 39 00:01:34,620 --> 00:01:35,640 ‫because we've done this before. 40 00:01:35,640 --> 00:01:38,280 ‫So, I will proceed without a key pair. 41 00:01:38,280 --> 00:01:40,770 ‫I will select create a new security group 42 00:01:40,770 --> 00:01:43,020 ‫that allows HTTP traffic. 43 00:01:43,020 --> 00:01:45,990 ‫No need for SSH, so HTTP is enough. 44 00:01:45,990 --> 00:01:48,660 ‫And then, we're going to scroll down. 45 00:01:48,660 --> 00:01:49,830 ‫And under advanced details, 46 00:01:49,830 --> 00:01:52,440 ‫we're going to add some user data. 47 00:01:52,440 --> 00:01:55,530 ‫And, I will just post this. 48 00:01:55,530 --> 00:01:57,180 ‫And instead of hello world from host name, 49 00:01:57,180 --> 00:02:01,020 ‫we're gonna say, "Hello world from Ireland". Okay. 50 00:02:01,020 --> 00:02:03,243 ‫Next, I'm going to launch this instance. 51 00:02:04,140 --> 00:02:06,660 ‫And, we have one instance launching right now 52 00:02:06,660 --> 00:02:08,340 ‫in this region. 53 00:02:08,340 --> 00:02:10,620 ‫So, I'm going to click on it 54 00:02:10,620 --> 00:02:13,110 ‫and I'm going to get the public IP from this instance. 55 00:02:13,110 --> 00:02:15,210 ‫So, here it is. 56 00:02:15,210 --> 00:02:16,590 ‫And, I'm going to just save this 57 00:02:16,590 --> 00:02:21,590 ‫in, in a new file in here, just to have a reference to it. 58 00:02:21,990 --> 00:02:24,420 ‫So, Ireland is this IP. 59 00:02:24,420 --> 00:02:25,380 ‫And then what I'm going to do is, 60 00:02:25,380 --> 00:02:26,430 ‫I'm going to switch regions. 61 00:02:26,430 --> 00:02:29,973 ‫So maybe, I'll go to US West two, so Oregon. 62 00:02:33,270 --> 00:02:34,710 ‫And, I'm going to do the exact same thing. 63 00:02:34,710 --> 00:02:38,643 ‫So, I will launch instances and I will scroll down. 64 00:02:39,630 --> 00:02:41,880 ‫Instance type, I will choose a T2 Micro. 65 00:02:41,880 --> 00:02:42,960 ‫So as you can see, it's a bit slower. 66 00:02:42,960 --> 00:02:44,520 ‫So, this is because we're in a region 67 00:02:44,520 --> 00:02:45,510 ‫that's further away from me. 68 00:02:45,510 --> 00:02:48,690 ‫So, it's a good example of a latency. 69 00:02:48,690 --> 00:02:50,160 ‫I will create a security group again 70 00:02:50,160 --> 00:02:54,690 ‫and it will just allow HTTP traffic from anywhere. 71 00:02:54,690 --> 00:02:56,730 ‫And for advance details, again, 72 00:02:56,730 --> 00:03:01,530 ‫I'm going to copy the user data from before. 73 00:03:01,530 --> 00:03:06,530 ‫And this one is going to be "Hello world from the US". Okay. 74 00:03:08,040 --> 00:03:10,570 ‫Next, I'm going to launch my instance 75 00:03:13,110 --> 00:03:15,660 ‫and go in the console to find it. 76 00:03:15,660 --> 00:03:17,940 ‫So now, we have two instances being launched. 77 00:03:17,940 --> 00:03:20,220 ‫So, we have one in the Ireland region 78 00:03:20,220 --> 00:03:22,350 ‫and one in the US West two region. 79 00:03:22,350 --> 00:03:24,660 ‫So, they're further, far away from each other. 80 00:03:24,660 --> 00:03:28,350 ‫And, if I go to this first IPV four address and go for it, 81 00:03:28,350 --> 00:03:30,090 ‫I get the "Hello world from Ireland". 82 00:03:30,090 --> 00:03:32,280 ‫So, this is working just fine. 83 00:03:32,280 --> 00:03:33,630 ‫And, I'm going to pause for this instance 84 00:03:33,630 --> 00:03:35,493 ‫to start running and get back to you. 85 00:03:36,540 --> 00:03:38,070 ‫Now, if I go to this instance 86 00:03:38,070 --> 00:03:41,130 ‫and look at the public IPV four address and paste it, 87 00:03:41,130 --> 00:03:43,380 ‫I get a "Hello world from the US". 88 00:03:43,380 --> 00:03:44,213 ‫So, this is awesome. 89 00:03:44,213 --> 00:03:48,570 ‫We have an instance in Ireland and an instance in the US. 90 00:03:48,570 --> 00:03:51,120 ‫So now, let's go into Route 53. 91 00:03:51,120 --> 00:03:52,620 ‫So, here I am. 92 00:03:52,620 --> 00:03:54,210 ‫And, I'm going to actually create records. 93 00:03:54,210 --> 00:03:56,430 ‫So, we're going to create our first record 94 00:03:56,430 --> 00:04:01,430 ‫and the sub-domain is going to be www.stephane-ccp.com. 95 00:04:01,710 --> 00:04:04,833 ‫It's a type of record which is the A type of record. 96 00:04:05,790 --> 00:04:07,350 ‫And the value is going to be, 97 00:04:07,350 --> 00:04:09,240 ‫the value of my instance in Ireland. 98 00:04:09,240 --> 00:04:13,410 ‫So I copy this and paste it, and you need to remove the htp 99 00:04:13,410 --> 00:04:15,720 ‫if it does, if it does get copied. 100 00:04:15,720 --> 00:04:16,740 ‫And, the routing policy 101 00:04:16,740 --> 00:04:20,160 ‫is going to be a Latency based policy 102 00:04:20,160 --> 00:04:22,350 ‫because I wanna be routed to the instance 103 00:04:22,350 --> 00:04:25,470 ‫that is the closest to me in terms of Latency. 104 00:04:25,470 --> 00:04:28,680 ‫So this instance right here, is in the EU-West one region. 105 00:04:28,680 --> 00:04:31,890 ‫So I will just type it, EU-West one and I have it. 106 00:04:31,890 --> 00:04:34,320 ‫And then, the record ID will say my, 107 00:04:34,320 --> 00:04:37,023 ‫my instance from Ireland. 108 00:04:38,580 --> 00:04:40,200 ‫And, we can add another record underneath. 109 00:04:40,200 --> 00:04:43,470 ‫So again, for www.stephane-ccp.com, 110 00:04:43,470 --> 00:04:45,420 ‫same thing as in A record. 111 00:04:45,420 --> 00:04:48,933 ‫This time the value is going to be this IP right here. 112 00:04:50,190 --> 00:04:52,077 ‫So, I copy it and paste it. 113 00:04:52,077 --> 00:04:54,240 ‫And then, the routing policy is again a Latency 114 00:04:54,240 --> 00:04:56,970 ‫but this time, the region that this is in 115 00:04:56,970 --> 00:04:59,790 ‫is the US-West two, 116 00:04:59,790 --> 00:05:00,873 ‫which is Oregon. 117 00:05:02,010 --> 00:05:05,160 ‫And, the record is, "My US Instance". 118 00:05:05,160 --> 00:05:06,900 ‫Okay. So here, that means 119 00:05:06,900 --> 00:05:09,090 ‫that for the www, we have two records. 120 00:05:09,090 --> 00:05:11,760 ‫One associated with the US-West region and one 121 00:05:11,760 --> 00:05:13,950 ‫with the EU regions. 122 00:05:13,950 --> 00:05:15,723 ‫So, let's create these records. 123 00:05:17,190 --> 00:05:19,920 ‫And as you can see in here, you can look at the Latency 124 00:05:19,920 --> 00:05:23,040 ‫for two of these instances. 125 00:05:23,040 --> 00:05:25,440 ‫So now, we should go ahead and test this. 126 00:05:25,440 --> 00:05:30,270 ‫So, if I open a new tab and go to www.stephane-ccp.com 127 00:05:30,270 --> 00:05:31,380 ‫and press enter. 128 00:05:31,380 --> 00:05:33,390 ‫As you can see, I get a "Hello World from Ireland". 129 00:05:33,390 --> 00:05:34,860 ‫So, this is the instance 130 00:05:34,860 --> 00:05:36,570 ‫that is the closest to me, of course. 131 00:05:36,570 --> 00:05:37,980 ‫And if I refresh this page, of course, 132 00:05:37,980 --> 00:05:40,890 ‫I'm going to remain on the hello world from Ireland. 133 00:05:40,890 --> 00:05:44,400 ‫But if I use a VPN, and this is Nord VPN that I'm using 134 00:05:44,400 --> 00:05:46,350 ‫and connect to another country. 135 00:05:46,350 --> 00:05:48,360 ‫So for example, the United States. 136 00:05:48,360 --> 00:05:50,160 ‫Now, it will look like my connection 137 00:05:50,160 --> 00:05:54,150 ‫is coming from the United States, Okay. 138 00:05:54,150 --> 00:05:58,803 ‫So, I open a new private window and go to stephane-ccp.com. 139 00:06:01,050 --> 00:06:03,540 ‫And as you can see, I get a hello world back from the US 140 00:06:03,540 --> 00:06:08,070 ‫because my connection is closest to my US based instance. 141 00:06:08,070 --> 00:06:09,390 ‫So, that's it for this lecture. 142 00:06:09,390 --> 00:06:12,300 ‫So, we've demonstrated how Route 53 was allowing us 143 00:06:12,300 --> 00:06:15,720 ‫to create a record that would basically guide us 144 00:06:15,720 --> 00:06:19,890 ‫to the instance that has the least latency versus us, okay, 145 00:06:19,890 --> 00:06:20,970 ‫compared to us. 146 00:06:20,970 --> 00:06:24,150 ‫So, this is all you need to know for the scope of Route 53 147 00:06:24,150 --> 00:06:25,830 ‫at the exam, but of course, 148 00:06:25,830 --> 00:06:27,653 ‫if you're going to an associate level exam 149 00:06:27,653 --> 00:06:29,340 ‫then you need to learn more about 150 00:06:29,340 --> 00:06:31,380 ‫how to use different types of records, 151 00:06:31,380 --> 00:06:33,060 ‫what they mean, and so on. 152 00:06:33,060 --> 00:06:37,200 ‫So to clean up, just make sure to terminate your instances 153 00:06:37,200 --> 00:06:39,300 ‫in the various regions so that you don't have any cost. 154 00:06:39,300 --> 00:06:40,950 ‫So, you can terminate this one 155 00:06:40,950 --> 00:06:43,380 ‫and you can terminate that one as well. 156 00:06:43,380 --> 00:06:46,620 ‫And then also lastly, you can choose if you wanted to 157 00:06:46,620 --> 00:06:49,140 ‫to delete the hosted zones, stephane-ccp.com 158 00:06:49,140 --> 00:06:51,300 ‫or whatever you have chosen for your domain name. 159 00:06:51,300 --> 00:06:54,360 ‫This will cost you 50 cents per month, but no matter what, 160 00:06:54,360 --> 00:06:55,770 ‫the domain that you have purchased 161 00:06:55,770 --> 00:06:58,590 ‫before will cost you around 12 dollars per year. 162 00:06:58,590 --> 00:07:01,590 ‫So if you don't want to pay again 12 dollars next year, 163 00:07:01,590 --> 00:07:04,890 ‫please make sure to disable the auto renewal. 164 00:07:04,890 --> 00:07:06,600 ‫Okay. So, that's it for this lecture. 165 00:07:06,600 --> 00:07:09,550 ‫I hope you liked it and I will see you in the next lecture.