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

1

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

1

On the VPC dashboard, click start VPC wizard

2

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

3

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

4

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

5

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

6

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

7

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

8

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.

9

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

10

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.

11

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

12

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

13

14

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

15

click on remove.

16

click on save.

17

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

18

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

19

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

20

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

21

click on Add Tags

22

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.

23

select an existing key pair or create a new key.

2425

Click on Launch Instances.

26

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

272829

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

30

Click on Allocate New Address

31

On the confirmation box click on allocate.

32

Click close.

33

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

34

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.

35

36

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

37

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

38

When prompted for confirmation Click Yes,Terminate.

39

Navigate to Amazon VPC console

40

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

4142

Conclusion

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
Advertisements
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:

WordPress.com Logo

You are commenting using your WordPress.com 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