1 00:00:06,676 --> 00:00:08,645 - All right, now let's run through a demo 2 00:00:08,645 --> 00:00:10,728 where we'll create a VPC. 3 00:00:13,280 --> 00:00:16,013 You can see that I'm logged into the console. 4 00:00:16,013 --> 00:00:20,277 From here, I'm going to, now I could scroll down here 5 00:00:20,277 --> 00:00:24,369 to the networking section, or from the top, 6 00:00:24,369 --> 00:00:27,395 I could click the services menu, 7 00:00:27,395 --> 00:00:28,825 and it would be listed, 8 00:00:28,825 --> 00:00:31,074 all of the services are listed alphabetical, 9 00:00:31,074 --> 00:00:33,694 so there is VPC on the right. 10 00:00:33,694 --> 00:00:38,069 I could also come here to networking and choose VPC. 11 00:00:38,069 --> 00:00:40,486 So I'm gonna go there to VPC. 12 00:00:42,738 --> 00:00:44,704 Now here at the VPC dashboard, 13 00:00:44,704 --> 00:00:46,797 you can see I have one VPC. 14 00:00:46,797 --> 00:00:50,365 I have one subnet, one NACL, one internet gateway, 15 00:00:50,365 --> 00:00:52,770 and one route table. 16 00:00:52,770 --> 00:00:54,683 Now one thing I want to point out here, 17 00:00:54,683 --> 00:00:59,026 you can see I have a VPC here in this particular region, 18 00:00:59,026 --> 00:01:00,712 in the Oregon region. 19 00:01:00,712 --> 00:01:04,568 Remember that VPCs are specific to a region. 20 00:01:04,568 --> 00:01:06,848 The subnets inside of that VPC 21 00:01:06,848 --> 00:01:09,228 will be specific to the availability zone. 22 00:01:09,228 --> 00:01:12,253 So you can see I have one subnet already created. 23 00:01:12,253 --> 00:01:17,085 Within this region, I've already deleted the default VPC, 24 00:01:17,085 --> 00:01:20,529 so I'm gonna switch regions just real quick to show you. 25 00:01:20,529 --> 00:01:23,317 I'm gonna switch over to the Ohio region. 26 00:01:23,317 --> 00:01:27,694 Doesn't really matter, any region would do. 27 00:01:27,694 --> 00:01:32,574 And you'll see that here is what we call the default VPC. 28 00:01:32,574 --> 00:01:35,446 This is default because it comes with your account. 29 00:01:35,446 --> 00:01:36,587 As soon as your create you account, 30 00:01:36,587 --> 00:01:39,119 you already have this default VPC. 31 00:01:39,119 --> 00:01:42,394 Amazon does that as a way to just make, 32 00:01:42,394 --> 00:01:44,011 lower the barrier to entry. 33 00:01:44,011 --> 00:01:45,488 It makes things a whole lot easier, 34 00:01:45,488 --> 00:01:47,760 especially for developers and folks 35 00:01:47,760 --> 00:01:49,996 who don't have a whole lot of knowledge and experience 36 00:01:49,996 --> 00:01:51,096 with networking. 37 00:01:51,096 --> 00:01:53,494 They just want to launch EC2 instances 38 00:01:53,494 --> 00:01:54,597 and get something running. 39 00:01:54,597 --> 00:01:58,466 So the default VPC is there for that reason. 40 00:01:58,466 --> 00:02:02,450 But I want to create one with a different IP range 41 00:02:02,450 --> 00:02:06,614 and have a bit more control over how it's actually created. 42 00:02:06,614 --> 00:02:11,148 So from here, I'm just going to say create VPC, 43 00:02:11,148 --> 00:02:15,315 I'm going to name it AWS live lessons, 44 00:02:16,615 --> 00:02:20,567 perhaps we'll put some applications in here later. 45 00:02:20,567 --> 00:02:23,650 Now the CIDR block, this is up to us, 46 00:02:24,498 --> 00:02:26,916 and generally when we're creating VPCs, 47 00:02:26,916 --> 00:02:28,952 depending on how we want to segment 48 00:02:28,952 --> 00:02:32,151 between applications or department, 49 00:02:32,151 --> 00:02:34,457 we need a strategy for handling our ranges. 50 00:02:34,457 --> 00:02:36,916 So for this one, I'm just going to choose 51 00:02:36,916 --> 00:02:41,083 something like ten dot two dot zero dot zero slash 16. 52 00:02:42,505 --> 00:02:45,568 Probably a whole lot more IP addresses than I'll need, 53 00:02:45,568 --> 00:02:46,901 but that's okay. 54 00:02:48,018 --> 00:02:50,018 So I'm gonna hit create, 55 00:02:52,147 --> 00:02:53,522 and it takes it, sometimes it takes it 56 00:02:53,522 --> 00:02:56,699 a few seconds to create that necessary resource. 57 00:02:56,699 --> 00:03:00,282 You will see that here I have two VPCs now, 58 00:03:01,117 --> 00:03:04,964 the default VPC which is always one seven two three one, 59 00:03:04,964 --> 00:03:08,717 and then of course the VPC that I just created. 60 00:03:08,717 --> 00:03:12,688 We could go over here and filter by VPCs. 61 00:03:12,688 --> 00:03:14,641 I'm gonna choose that one and you'll see now, 62 00:03:14,641 --> 00:03:17,768 because we're filtering, that only the VPC 63 00:03:17,768 --> 00:03:20,682 that I just created shows up. 64 00:03:20,682 --> 00:03:25,024 You will see now that this VPC does not have any subnets. 65 00:03:25,024 --> 00:03:27,941 It does have a default route table, 66 00:03:28,782 --> 00:03:33,705 so if we look at that, we will see that we are routing 67 00:03:33,705 --> 00:03:38,059 the ten two zero zero 16 to local within the VPC, 68 00:03:38,059 --> 00:03:41,514 so that's essentially our default route table. 69 00:03:41,514 --> 00:03:45,514 We will also see that down here our network ACLs 70 00:03:46,949 --> 00:03:50,282 that we have a network ACL for that VPC, 71 00:03:51,535 --> 00:03:54,355 and the network ACL that we get by default 72 00:03:54,355 --> 00:03:58,522 allows all incoming traffic and allows all outgoing traffic. 73 00:04:00,228 --> 00:04:04,395 So that is creating a VPC within Amazon Web Services.