Lab 3 (Introduction to Amazon Virtual Private Cloud (VPC) with Windows Server)

In this Lab you will be introduced to Amazon VPC and you will use the Amazon VPC wizard to create a VPC, attach an Internet Gateway to it, add a subnet, and then set up routing for the VPC so that traffic can flow between the subnet and the Internet gateway.

In this qwiklab you will learn:

  • How to Create an Amazon VPC
  • How to setup routing for the Amazon VPC
  • How to deploy an Amazon EC2 instance running window server in to the Amazon VPC
  • How to attach an Internet gateway to the Amazon VPC.
  • Delete an Amazon VPC

Amazon Virtual Private Cloud (Amazon VPC) enables you to launch Amazon Web Services (AWS) resources into a virtual network that you’ve defined. This virtual network closely resembles a traditional network that you’d operate in your own data center, with the benefits of using the scalable infrastructure of AWS.

Note: VPN Connection Pricing.$0.05 per VPN Connection-hour. $0.048 per VPN Connection-hour for connections to the Tokyo region. If you choose to create a Hardware VPN Connection to your VPC using a Virtual Private Gateway, you are charged for each “VPN Connection-hour” that your VPN connection is provisioned and available. Varies to different regions. If you are using a free tier up to a certain level you can use it free for an one year


Now lets create an Amazon VPC > Go to AWS management console homepage in the networking section > click VPC to open the Amazon VPC console.


On the VPC dashboard, click start VPC wizard


select the first option VPC with a Single Public Subnet and click Select.


In the VPC name box type a name such as “myVPC”. Leave the default settings and Click Create VPC.


click on OK to close the status window and return to the VPC dashboard.


Select myVPC the VPC just created check the summary tab and check the DNS settings for the vpc.
DNS resolution:yes
DNS hostnames:yes


To view your Internet gateways click on Internet Gateways from the navigation pane


To view your route tables click Route Tables in the Navigation pane.


Select the main route table, the main column has yes, zero subnets and the VPC column will have your VPC name (“myVPC”) at the end of the value.


Click on Security Groups in the navigation pane. Click on Create Security Group.


For the name tag Enter “WebserverSG” and then copy it to the description. Select “myVPC” from the VPC drop-down list and click on Yes,Create.


To add rules to the WebServerSG security group, click on the group you created, click on the inbound rules tab and click on edit.


Select HTTP from the type drop-down list
Enter in the source field
click on add another rule
Select HTTPS from the type drop-down list.
Enter in the source field
Click RDP from the type drop-down list
Use the same source value as you used above
Click save.



You can limit the outbound access by removing the default outbound rule. to remove the rule click on outbound rules tab and click on edit


click on remove.


click on save.


To launch a amazon EC2 instance go to services and select EC2. Click on launch Instance. 


Select Microsoft Windows Server 2012R2 Base AMI and then click select


On the choose an instant type page, Click Next:Configure Instance details.


On the configure Instance details page in the network field select the VPC you created. click on Add storage.


click on Add Tags


On the tag Instance page type a name for your Amazon EC2 instance in value field such as webserverand then click on Next:Configure Security Group.


select an existing key pair or create a new key.


Click on Launch Instances.


Select a existing key pair or create a new key pair click on launch.


To Attach an Internet Gateway to your VPC, click on Elastic IPs in the EC2 navigation pane.


Click on Allocate New Address


On the confirmation box click on allocate.


Click close.


Select the Elastic IP address from the list and on the action menu click Associate address.


resource type click on instance or Network Interface from the associated with list. and instance ID with your tag name. ex: “webserver” , select the private ip address associated with the elastic ip address and click on associate.



To delete the instance you created, click on instances in the navigation pane.


Right click the instance thats running in the vpc go to Instance state and click on terminate


When prompted for confirmation Click Yes,Terminate.


Navigate to Amazon VPC console


Select only the VPC you created ex:”myVPC” click on actions and select delete. When prompted for confirmation click Yes,Delete



by the end of this Lab you have learned:

  • How to Create an Amazon VPC
  • How to setup routing for the Amazon VPC
  • How to deploy an Amazon EC2 instance running window server in to the Amazon VPC
  • How to attach an Internet gateway to the Amazon VPC.
  • Delete an Amazon VPC
This entry was posted in Quick Labs. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s