20i0551 - Muhammad Usman - Lab02
20i0551 - Muhammad Usman - Lab02
2
ASSIGNMENT 2
Muhammad Usman 20i0551
In the top right of the screen, verify that N. Virginia (us-east-1) is the region. Choose the
VPC dashboard link which is towards the top left of the console.Next, choose Create
VPC.
6. Configure the VPC details in the VPC settings panel on the left.
7. In the Preview panel on the right, confirm the settings you have configured.
8. At the bottom of the screen, choose Create VPCThe VPC resources are created. The
NAT Gateway will take a few minutes to activate. Please wait until all the resources are
created before proceding to the next step.
9. Once it is complete, choose View VPC.The wizard has provisioned a VPC with a
public subnet and a private subnet in one Availability Zone with route tables for each
subnet. It also created an Internet Gateway and a NAT Gateway.
17. In the lower pane, choose the Routes tab.Note that Destination 0.0.0.0/0 is set to
Target nat-xxxxxxxx. This means that traffic destined for the internet (0.0.0.0/0) will be
sent to the NAT Gateway. The NAT Gateway will then forward the traffic to the internet.
18. Choose the Subnet associations tab.You created this route table in task 1 when
you chose to create a VPC and multiple resources in the VPC. That action also created
lab-subnet-private-1 and associated that subnet with this route table.
21. Choose Save associations. You will now configure the Route Table that is used by
the Public Subnets.
22. Select the lab-rtb-public route table (and deselect any other subnets).
23. In the lower pane, choose the Routes tab.Note that Destination 0.0.0.0/0 is set to
Target igw-xxxxxxxx, which is an Internet Gateway. This means that internet-bound
traffic will be sent straight to the internet via this Internet Gateway.
24. Choose the Subnet associations tab.
25. In the Explicit subnet associations area, choose “Edit Subnet Assossiation.”
26. Leave lab-subnet-public1-us-east-1a selected, but also select lab-subnet-
public2.
27. Choose Save associations.Your VPC now has public and private subnets
configured in two Availability Zones. The route tables you created in task 1 have also
been updated to route network traffic for the two new subnets.
Task 3: Create a VPC Security Group
33. In the search box to the right of Services, search for and choose EC2 to open the
EC2 console.
34. From the Launch instance menu choose Launch instance.
38. Select the key pair to associate with the instance. From the Key pair name menu,
select vockey.
39. Configure the Network settings.Next to Network settings, choose Edit, then
configure.
42. At the bottom of the Summary panel on the right side of the screen choose Launch
instance.You will see a Success message.
43. Choose View Instances.
44. Wait until Web Server 1 shows 2/2 checks passed in the Status check column.This
may take a few minutes. Choose the refresh icon at the top of the page every 30
seconds or so to more quickly become aware of the latest status of the instance.
45. Select Web Server 1.
46. Copy the Public IPv4 DNS value shown in the Details tab at the bottom of the
page.
47. Open a new web browser tab, paste the Public DNS value and press Enter.You
should see a web page displaying the AWS logo and instance meta-data values.
Grade Report: