Creating a VPC (Virtual Private Cloud)

Andrew Brown
A free video tutorial from Andrew Brown
CEO, Founder and Lead Instructor at ExamPro
4.4 instructor rating • 3 courses • 48,579 students

Learn more from the full course

The Fast Track To Deploying A Web App On AWS The Right Way

A Hands On Guide to Blue/Green Deployment with Auto Scaling, Application Load Balancer, CodeDeploy, CodePipeline

02:37:41 of on-demand video • Updated April 2019

  • Setting up your AWS Network
  • Creating RDS Postgres Database
  • Configure, Launch and SSH into EC2
  • Provision Ruby on Rails For Production
  • Create an Amazon Machine Image
  • Setup an Auto Scaling Group
  • Setup an Application Load Balancer
  • Blue/Green deployment via CodeDeploy
  • Automatic Deployment via CodePipeline
English [Auto] We want to go ahead and set up our network that we're gonna be using to deploy deploy your application. And so setting up our entire network is done through the VPC console. So going up to services and typing VPC this is going to take us to the VPC console. And so everything on the left hand side here is what's going to help us set up our network so you'll notice that we have a default VPC. There's always one VPC by default for every single region in a database account and since you already have something set up you can launch servers into the default VPC. But since I want to show you how to set up your own network to have maximum flexibility. We're going to ignore the default VPC and network resources that are set up by default for you so to create a VPC. We're going to go to the left hand side to your VPC is and here you can see we have the default VPC. It has its own IP address 172 31 or 31 0 0 with a side or block of forward slash 16. And we're going to go ahead and create our own VPC and we're gonna call this VPC. We can call this VPC m ss 1 0 1 PPC and then decide our blog is gonna be 10 0 0 0 for it slash 16. And so you might be asking well what is a cyber BLOCK And what did I just write in there. Well we're going to cover that in an upcoming section in more detail but just to give you a quick idea we're saying what IP address we want to be using for our VPC and we could make this anything we want and then with the fourth Slide 16 is saying how many IP addresses do we want to allow within this network and for its size 16 you'll find out is quite a few. And so we can set up IP vs 6 here. Let's just keep it simple and forget about IP vs 6 tenancy. We want to keep it default. You do not want to do dedicated dedicate is very expensive. We'll go ahead and we'll hit create. So now we've created our VPC you can see it's very fast. And here's the VPC I.D. So we'll proceed to the VPC I.D. which takes us back over to your view pieces on the left hand side here and you can see we have our VPC that we created and it's listed here in the left hand side. Now where does the default one go. Well when we click that link it specifically selected that. So we'll turn off that filter. And now we can see all of our pieces in this region of North Virginia. OK. If we were to switch regions to anywhere else U.S. West you'll notice that VPC we created is now gone because everything is region specific. So we'll go ahead and switch back to U.S. East and we should see our VPC again. So here it is. There's our VPC. So when we created that VPC by default it will yet by default it will also create some additional resources. And so you can see here there is a wrote table already set and there is an ACL already set. And so we're probably we're going to recreate our own row tables we're not going to use the default one that was created with it and we'll we have a section row tables. We'll talk about that when we get there. But now that we have a VPC The next question is how do we connect the Internet to our VPC. OK. So that's what we're going to do next. So now that we've created our VPC there's an option we need to turn on on our VPC for RDX and our easy two instances so that we can actually reach them from a DNS record. And so when we're saying DNS just think of a HRC email you're all right. So we're gonna go down here and we're going to edit the DNS host names and we're going to enable that. So that's just something important that we need to do for a later step.