From the course: Deploying Your AWS Application to the Cloud with Docker

Building the network infrastructure for your deployment - Amazon Web Services (AWS) Tutorial

From the course: Deploying Your AWS Application to the Cloud with Docker

Building the network infrastructure for your deployment

- [Narrator] Just like any deployment in AWS, our deployment will require a specific network and infrastructure to support our web application deployment. The default VPC and subnets included with your AWS account should be enough, but in case you don't have those in place, let me show you how to create them. Go to the VPC console here and select the launch VPC wizard, and here we'll choose VPC with a single public subnet. Click select. Provide a name, call it demo VPC. 10 zero zero address is fine, and the same for the public subnet. But we will change the availability zone, to two A in this case, and the name to public subnet one, because we will be adding a secondary. Click create. With the VPC created, we'll go to subnets. We'll click create subnet. Now this one we're going to call public subnet two. We're going to find our VPC, just a demo VPC. For the availability zone we already chose two A, this time we're picking two B. And now for the slider choose 10.0.1.0/24, and click create. Let's change the routing association to make sure our subnet is public. Define our subnet, click route table, and edit the association. So you can see there's only one local route here, which means this subnet is private at the moment. We'll change that. And now we have a route zero zero zero, to the internet gateway, making this subnet public. And with that we have a VPC and two public subnets available as our infrastructure for our web application.

Contents