Creating Custom VPC in AWS

Posted: April 30, 2017 in Amazon Web Services (AWS), Linux

Virtual Private Cloud (VPC) is custom datacenter in Amazon cloud when we define network (subnets,routing tables,ACL’s..)

In AWS console click VPC under Networking & Content Delivery

1.png

 

Your VPC’s-Create VPC

3

CIDR Block size must be between 16-28

Tenancy-default-use shared hardware

dedicated-use dedicated hardware (incurs costs)

4

 

5.PNG

After creating VPC Route table and Network ACL’s are automatically created

5

 

6

 

Creating subnets

From VPC dashboard click Subnets-Create Subnet

8

Under availability zone choose AZ or let AWS chooses it for you (No Preference)

 

9

 

10

By default addresses won’t be automatically leased to VM’s

 

click on subnet-subnet actions-Mofidy auto-assign IP settings

 

10-1.png

Click Auto-assign IPs

10-2

 

3 addresses are reserved:

1-vpc router
2-dns server
3-future use

Creating Internet Gateway

we need gateway in order to allow access to our VPC from the internet

 

Internet Gateway-Create Internet Gateway

11

 

Bind Gateway to subnet-click Attach to VPC

 

12

 

13

Edit Routing table

We need to allow internet access from subnet

Route Tables-Click on Route table (created during VPC creation)-Click on Subnet Association-Edit)

14.PNG

Click on check-box to assign subnet to Routing Table

 

15

 

Click on Routes-Add another route

16.png

 

Enter route

 

17.PNG

Create new EC2 instance and select our VPC-under subnet create subnet we created

 

18

 

20.PNG

 

19

Advertisements

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