First of all, we needed the go into VPC from the Aws console, when we went into this, there was a wizard to go to use, this is where I created my new VPC. As suggested I used the single subnet and left it to the standard subnet as shown below.
After this we went in to have a look at the DNS information and whether the resolution and the hostname were turned on. We were to go in and have a look at the ROoute table, in this we could have a look at the route we had just created as shown below.
While comparing the different routes, we can see the difference in the route we just created, and the main route is that our one we just created goes out into the internet, but the main one is just local address as shown below.
Setting up a security group
This is where we can set inbound and outbound rules for the security groups. Here as pictured below, we can see that we create a security group and set it to a VPC in our case we have premade the pics.
Once the group has been created, we can add the TCP ports as suggested in the labs, as listed below these are the primary ones that we will use.
this is done under the inbound rules tab, there is also the outbound rules tab in which we will delete the default that allows all traffic.
Launching an Amazon EC2 instance
Now we will start to create a new instance, this is done via the Ec2 console in AWS. in this we can launch a new instance, In this, we will choose to use Linux.
as seen above we have used our previously created VPC for a network, as we are creating this we leave our storage as the default.
Once we go through creating the group we can review and launch the new instance
While we have launch the instance we can choose the keys we use this instance with, for this I created a new key as I didn’t have one previously. Now we can launch instances.
ATTaching an Internet Gateway to your VPC
Now we need to attach a gateway address to our vpc, in this we create an elastic Ip address. In the same Console we have been working in, we can select elastic IP addresses for our VPC’s.
Now we have created a VPC we coun now Change the settings in the Associate assess.s as shown below