#

Sunday, March 31, 2019

This is the most basic thing to do when you are going to deploy anything in AWS (Amazon Web Services). In this post, I am going to walk you through the implementation of a VPC and a Public Subnet which connects to internet and in some future posts I'll show you how the actual servers / Cisco CSR100v are going to be deployed in AWS.

Following is the setup I am going to implement here.

Generally speaking about the terms, VPC is what we call Virtual Private Cloud. It is nothing but a network with a network ID (IP range) / isolated space in the cloud where we can deploy our Instances (Machines).

Public Subnet is the subnet which is in the range of VPC and where we deploy the servers / resources which should be accessed through internet.

Internet Gateway is the element which is used to connect to internet by the servers in the Public Subnet.





Create the VPC

On AWS Management Console search for VPC and select.
Select Create VPC under VPC dashboard for manual creation or go for VPC Wizard and select the appropriate option according to your design.
Here I am going with Create VPC..















I am hitting Create after giving the options I need for my implementation.


Create the Subnet

Then go to Subnets under VPC dashboard and hit Create Subnet..














Create the Internet Gateway

Now let's create an Internet Gateway..
Go to Internet Gateways under VPC dashboard and hit Create Internet Gateway.
There you will need to give only the name to create it.
Then go to Actions > Attach to VPC and select your VPC.











Configure Route Tables

Now go to the Route Tables under VPC dashboard.
There you will see a Main route table is already created by the above settings.

Go to the Subnet Associations and Edit Subnet Associations and select the subnet you created (the one which should go public) and hit Save.























Then select the Routes tab and hit Edit Routes.
Give a default route (0.0.0.0/0) and select the target as the Internet Gateway you created and associated with the VPC.