Create Route Table

Creating a Route Table in Amazon VPC

ℹ️ Overview

  • A route table is the component that routes network traffic within a VPC
  • It determines the path packets take between subnets and the internet
  • It lets you control the flow of traffic in and out of the VPC

🔒 Steps

  1. Open the VPC console
    • Select Route Tables from the left-hand menu
    • Click Create route table

Create VPC

  1. Configure the Route Table
    • Name: Enter Route table-Public
    • VPC: Select the ASG VPC (the VPC ID fills in automatically)
    • Click Create route table

Create VPC

  1. Confirm the Route Table was created successfully
    • You’ll see a success message
    • The new Route Table appears in the list

Create VPC

💡 Configuring the Route

  1. Add a route for the Internet Gateway
    • Select the Route Table you just created
    • Click Actions
    • Choose Edit routes

Create VPC

  1. Configure the new route
    • Click Add route
    • Destination: Enter 0.0.0.0/0 (representing all internet traffic)
    • Target: Select Internet Gateway and choose the IGW you created
    • Click Save changes

Create VPC

⚠️ Associating with Subnets

  1. Set up the subnet associations
    • Select the Subnet associations tab
    • Click Edit subnet associations

Create VPC

  1. Select the public subnets
    • Widen the Subnet ID column if needed for a clearer view
    • Select both public subnets you created earlier (Public Subnet 1 and Public Subnet 2)
    • Click Save associations

Create VPC

  1. Confirm the subnet associations were configured successfully
    • Check the Subnet associations tab
    • Both public subnets are now associated with the route table
    • The public subnets can now route traffic to the internet through the IGW

Create VPC