Route Tables

Route Tables

ℹ️ Information: Route tables control the routing of network traffic within your VPC. This section guides you through configuring route tables to enable communication between peered VPCs.

💡 Pro Tip: Each subnet in your VPC must be associated with a route table, which controls the routing for the subnet. You can associate multiple subnets with the same route table.

Implementation Steps

  1. Access VPC Management Console
    • Select Route Tables from the left sidebar
    • Select the route table associated with My VPC

Route Tables Console

  1. Edit Route Table
    • Click the Routes tab
    • Click Edit routes

Edit Route Table

  1. Add Route for VPC Peering
    • Click Add route
    • Set the Destination to the CIDR block of HG VPC
    • Set the Target to the VPC Peering connection
    • Click Save routes

Add Route for Peering

  1. Repeat for HG VPC
    • Select the route table associated with HG VPC
    • Add a route for the CIDR block of My VPC
    • Set the target to the VPC Peering connection

Add Route for HG VPC

  1. Verify Configuration
    • Ensure both route tables have routes for the peered VPCs
    • Test connectivity between EC2 instances in both VPCs

Verify Route Configuration

🔒 Security Note: Regularly review and audit your route tables to ensure they only allow necessary traffic between VPCs.

⚠️ Warning: Incorrect route table configurations can lead to network connectivity issues. Always test connectivity after making changes.

💡 Pro Tip: Document your route table configurations and their purposes to maintain clear network policies and facilitate troubleshooting.