How to create a VPC - Kahuna915/Capstone-Cloud-Integration GitHub Wiki
GUI
- Search VPC and select "VPC Isolated Cloud Resources"
- Once at the VPC dashboard, select "Create VPC"
- This is the Create VPC landing page
- Under VPC settings select VPC and more
Naming the VPC
4. Enter a name for the VPC
IPv4, IPv6 CIDR Block
5. What address range and how big do we want it to be? In this section, this is where it would be defined.
- For this example, I chose 10.0.1.0/24
Availability Zone
- For this, I chose to go with one, since we will only need one public and one private network now.
Subnets
We will be using one Public and one Private
NAT Gateways and VPC Endpoints
- For now, we will keep these at default, none, and S3 Gateway. Later we will go in and add a NAT Gateway.
DNS Options
Creat the VPC
- Once all the settings are configured, select "Create VPC"
If set up correctly, there should be success all the way through
Creating a routing table
- On the VPC dashboard tab, there will be a Route Tables Option, select that to continue
- After you are there, select "Create route table"
- Give the routing table a name, in this step, I am creating a private route table.
- Assign it to the proper VPC, for this example, we are using cyber.aws-vpc
- Once this is done, select "Create route table"
Associate the routing table with the proper subnet
Once the routing table is created, we are able to associate it with the Subnet we want. For this example, we are creating a private route, so we will want to attach it to the private subnet.
- Select Subenet associations
- Create a Subnet Association
- Select the private subnet
- Save the association and check that it is listed after!
Create an internet gateway
- Name the gateway and select Create
- Under the actions attach the new Internet Gateway to the VPC
Edit Routes
We will connect an Internet Gateway to the public subnet for this example.
- Select Add Route
- Select 0.0.0.0/0 so that all traffic from this subnet can reach the internet gateway.
- Select the Internet gateway created in the previous step and save the changes.
As you can see the new route has been created.