DEV Community

Saloni Singh
Saloni Singh

Posted on

Learning AWS Day by Day - Day 19 - VPC Hands-on: Part 1

Image description

Exploring AWS !!

Day 19:

VPC Hands-on: Part 1

Task:

  1. Create a VPC with 120.0.0.0/16 CIDR block
  2. Create 1 public subnet, 2 private subnets and make sure you connect a NAT gateway for internet connectivity to private subnet

Now follow the below steps to complete the given task:

  1. Create VPC.

Image description

  1. Create total 3 subnets — 2 private and 1 public

Image description

  1. Go to Actions → Edit subnet settings → Enable auto-assign → Save This will make the subnet public

Image description

  1. Go to Internet Gateways and click Create Internet Gateway

Image description

  1. Give proper name and click Create.

Image description

  1. Go to Actions→ Attach VPC

Image description

  1. Attach VPC and click on Attach

Image description

  1. Click on Route Tables→ Edit Route→ Add route→ Internet gateway and Save

Image description

  1. Select subnet association and select the public subnet and click save

Image description

  1. Create a route table for private subnet

Image description

  1. New route table will be created for private subnets

Image description

  1. Go to NAT Gateways and click create

Image description

  1. The NAT Gateway is created.

Image description

  1. Click on private route in Route table

Image description

  1. Add the NAT route

Image description

  1. Edit subnet association and add Private subnets

Image description

  1. The routes are ready now.

Image description

Top comments (0)