AWS Custom VPC with public & private Subnet

AWS is providing a default VPC in every region whereas if you want to create a custom VPC as per region steps are as below

As per image will configure a Custome VPC

1. Login in Account 2. Select a region where you want to create a VPC,

Open Service tab and find VPC

Create VPC with CIDR 10.0.0.0/16 or 192.168.0.0/16

Create Public Subnet with CIDR 10.0.1.0/24

Create Private Subnet with CIDR 10.0.2.0/24

Create an Internet Gateway to route from VPC to internet

Attach IGW to Respective VPC

Create a Route Table for routing

Create RT for Pub-subnet

Create RT for Pri-subnet

Associate Pub-RT with Pub-subnet

Associate Pri-RT with Pri-subnet

Now Public Subnet want to route out, so that configure Routes for Pub-Sub and assign a destination as 0.0.0.0/0 as global address

now if required configure Auto-assign public IP for Pub-Subnet

And Assign Auto DNS-hostname by AWS

That’s it …

Now you are ready to use your custom VPC …

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top