SYS 360 Lab 10 1: AWS Virtual Private Cloud - JadenGil/Jaden-Tech-Journal GitHub Wiki
Create a New Non-Default VPC
To start this lab off we will be using Amazon VPC so we will want to use the search bar to navigate to VPC and once on the home screen we want to select "Create VPC":
When creating the VPC we want to set the following settings and leave everything else default:
Deliverable 1:
View information about your VPC
Now we want to go back to the VPC dashboard and in the side panel select "Your VPCs" and the VPC we created should show up as "Project VPC"
We will want to remember the Name and VPC ID for later so take note!
Then we will want to navigate to "Subnets" in the left panel and we can take a look at our VPCs Subnet that was created
Deliverable 2:
Now we want to navigate "Internet gateways" and we can take a look at the internet gateway ID that has been attached to our VPC
Deliverable 3:
Now we want to navigate to "Route tables" and from here we can select our custom VPC and navigate to the routes tab at the bottom of the screen
Deliverable 4:
Notes from lab:
One of the rows in the table is the local route, which enables instances within the VPC to communicate. This route is present in every route table by default, and you can't remove it.
The other row shows the route that the Amazon VPC wizard added to enable traffic destined for the internet (0.0.0.0/0) to flow from the subnet to the internet gateway.
Launch an instance into your VPC
Now we will want to use the search bar to navigate to EC2 and select "Launch instance" on the dashboard and when making the instance we will need to make sure we select the VPC that was just made:
and we want to add the following inbound rules:
We can try and SSH into the instance now but it won't work so we will need to add an elastic IP to the instance
Deliverable 5:
Assign an Elastic IP address to your instance
We will first wanna navigate to VPC once again, select Elastic IPs in the nav pane, and select allocate elastic IP address:
We can just select allocate once on the next page but once that's done we want to select the new elastic IP and go to "Actions" -> Associate Elastic IP:
Select the proper instance and IP and select associate:
And now we can access the internet on the instance.
Configure a Web Service and Connect
We will now want to SSH into the instance then we will install and start apache2:
Deliverable 6: